Skip to content

Commit

Permalink
Adding mongo mocking file for base case of study
Browse files Browse the repository at this point in the history
  • Loading branch information
khantilchoksi committed Mar 16, 2018
1 parent 68580d3 commit 4d9571f
Show file tree
Hide file tree
Showing 22 changed files with 2,060 additions and 7 deletions.
3 changes: 3 additions & 0 deletions checkbox_test_generation/jade/code.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pre
code.nohighlight
!{text}
6 changes: 6 additions & 0 deletions checkbox_test_generation/jade/multichoice.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ul
for choice in choices
li
.controls
label.checkbox!= choice.label
input(type='checkbox',name='#{choice.name}',value='#{choice.value}')
18 changes: 18 additions & 0 deletions checkbox_test_generation/jade/multichoicetable.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table.questionTable.table-bordered.table-condensed
thead
tr
for header in headers
th #{header}
tbody
each row, r in rows
tr
each col, c in row
- if ( c === 0 )
td #{col}
- else if (col.indexOf('!') === 0 )
td #{col.replace('!','')}
- else
td
.surveycell
label.checkbox
input(type="checkbox", value="#{c}", name="#{table}_#{r}")
6 changes: 6 additions & 0 deletions checkbox_test_generation/jade/singlechoice.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ol
for choice in choices
li
.controls
label.radio!= choice.label
input(type='radio',name='#{choice.name}', value='#{choice.value}')
18 changes: 18 additions & 0 deletions checkbox_test_generation/jade/singlechoicetable.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table.questionTable.table-bordered.table-condensed
thead
tr
for header in headers
th #{header}
tbody
each row, r in rows
tr
each col, c in row
- if ( c === 0 )
td #{col}
- else if (col.indexOf('!') === 0 )
td #{col.replace('!','')}
- else
td
.surveycell
label.radio
input(type="radio", value="#{c}", name="#{table}_#{r}")
Empty file.
47 changes: 47 additions & 0 deletions checkbox_test_generation/jade/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<html>
<head><title>DocSight Extension Options</title>

<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="options.css" />

<script src="api/jquery-1.7.2.min.js"></script>
<script src="js/options.js"></script>

</head>
<body>

<div id="content">
<form id="optionsForm" class="form-horizontal well">
<legend>docsight preferences</legend>
<div class="control-group">
<label class="control-label" for="optionsCheckbox">History Order</label>
<div class="controls">
<label class="radio">
<input id="chron" type="radio" name="ordertype" value="Chronological"/>Chronological
</label>
<label class="radio">
<input id="newest" type="radio" name="ordertype" value="Newest-First" />Newest First
</label>
</div>
</div>
<div class="control-group">
<label class="control-label" for="textarea">Custom Filters</label>
<div class="controls">
<textarea id="filters" class="input-xlarge" id="textarea" rows="8"></textarea>
</div>
<p class="help-block">
Example, to include github issues: <code>@include https://github.com/*/issues*</code> <br/>
Example to exclude Stack Overflow User Pages: <code>@exclude *://stackoverflow.com/users/*</code><br/>
See filtering <a href="https://github.com/chrisparnin/docsight#readme" target="#">section</a> for details.
</p>
</div>
<div class="form-actions">
<button id="submitBtn" type="submit" class="btn btn-primary">Save changes</button>
<button id="cancelBtn" type="reset" class="btn">Cancel</button>
</div>
</form>
</div>
</body>


</html>
69 changes: 69 additions & 0 deletions checkbox_test_generation/jade/test2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<html>
<head><title>DocSight Extension Options</title>

<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="options.css" />

<script src="api/jquery-1.7.2.min.js"></script>
<script src="js/options.js"></script>

</head>
<body>

<div id="content">
<form id="optionsForm" class="well">
<legend>docsight preferences</legend>

<h3>Another question</h3>
<ul>
<li>
<div class="controls">
<label class="checkbox">this is a label?:
<input type="checkbox" name="name"/>
</label>
</div>
</li>
<li>
<div class="controls">
<label class="checkbox">don't check this:
<input type="checkbox" name="name2"/>
</label>
</div>
</li>
</ul>

<h3>I have a question</h3>
<div class="controls">
<label class="checkbox">This is a label?:
<input type="checkbox" name="userA name"/>
</label>
</div>
<div class="controls">
<label class="radio">
<input id="chron" type="radio" name="ordertype" value="Chronological"/>Chronological
</label>
<label class="radio">
<input id="newest" type="radio" name="ordertype" value="Newest-First" />Newest First
</label>
</div>
<div class="control-group">
<label class="control-label" for="textarea">Custom Filters</label>
<div class="controls">
<textarea id="filters" class="input-xlarge" id="textarea" rows="8"></textarea>
</div>
<p class="help-block">
Example, to include github issues: <code>@include https://github.com/*/issues*</code> <br/>
Example to exclude Stack Overflow User Pages: <code>@exclude *://stackoverflow.com/users/*</code><br/>
See filtering <a href="https://github.com/chrisparnin/docsight#readme" target="#">section</a> for details.
</p>
</div>
<div class="form-actions">
<button id="submitBtn" type="submit" class="btn btn-primary">Save changes</button>
<button id="cancelBtn" type="reset" class="btn">Cancel</button>
</div>
</form>
</div>
</body>


</html>
1 change: 1 addition & 0 deletions checkbox_test_generation/jade/text.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
input(type="text",name="#{name}",placeholder="#{placeholder}")
1 change: 1 addition & 0 deletions checkbox_test_generation/jade/textarea.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
textarea.span9(name="#{questionNumber}",rows="#{rows}")
1 change: 1 addition & 0 deletions checkbox_test_generation/jade/upload.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
input(type="file",name="#{name}",placeholder="#{placeholder}")
Loading

0 comments on commit 4d9571f

Please sign in to comment.