Skip to content

Commit 5de666a

Browse files
committed
continuing along
1 parent 725dedf commit 5de666a

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎v3/css/opt-frontend.css‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ button.surveyBtn {
222222
}
223223

224224
#testCasesPane {
225-
margin-top: 20px;
226-
padding: 5px;
227-
/* border: 1px solid #ddd; */
225+
margin-top: 5px;
226+
padding-bottom: 10px;
227+
border-bottom: 1px solid #ccc;
228228
}

‎v3/js/opt-frontend.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,5 +765,9 @@ $(document).ready(function() {
765765
});
766766
}
767767

768-
//initTestcasesPane('#testCasesPane');
768+
$("#createTestsLink").click(function() {
769+
initTestcasesPane('#testCasesPane');
770+
$(this).hide();
771+
return false;
772+
});
769773
});

‎v3/js/opt-testcases.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ function initTestcasesPane(parentDivId) {
6363
return false; // to prevent link from being followed
6464
});
6565

66-
$("#addNewTestCase").click(); // for testing
67-
6866
$("#runAllTestsButton").click(function() {
6967
$(".runTestCase").click();
7068
});
@@ -268,6 +266,6 @@ function getAllTestcases() {
268266
function appStateAugmenter(appState) {
269267
var tc = getAllTestcases();
270268
if (tc.length > 0) {
271-
appState['testCases'] = tc;
269+
appState['testCasesJSON'] = JSON.stringify(tc);
272270
}
273271
}

‎v3/red-sad-face.jpg‎

3.32 KB
Loading

‎v3/visualize.html‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@
238238
</div>
239239

240240

241+
<p style="margin-top: 25px;"><a href="#" id="createTestsLink">Create test cases</a></p>
242+
241243
<div id="testCasesPane"></div>
242244

243245

‎v3/yellow-happy-face.jpg‎

3.2 KB
Loading

0 commit comments

Comments
 (0)