Skip to content

Commit 29b9364

Browse files
committed
Working on build error for highlight test
1 parent 5cba0aa commit 29b9364

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

test/.DS_Store

0 Bytes
Binary file not shown.

test/debug_code.js

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,18 @@ describe('code debugger', function() {
148148
assert.equal(true, result.touchesblue);
149149
// The turtle should not be moving any more.
150150
assert.equal(0, result.queuelen);
151-
/* TODO: investigate if PhantomJS stack traces can be parsed.
152-
* For now, line tracing dosn't work on PhantomJS, so these tests
153-
* are disabled.*/
154151
// A line of code should be traced.
155152
assert.equal(1, result.debugtracecount);
156153
// The traced code should be around line 4 or beyond.
157154
assert.ok(parseInt(result.debugtracetop) > 80);
158155
done();
159156
});
160157
});
161-
it('should be able to trace program line', function(done) {
158+
it('should be able to trace program line', function(done) {
162159
asyncTest(_page, one_step_timeout, null, function() {
163160
// Click on the square stop button.
164161
$('#stop').mousedown();
165-
$('#stop').click();
166-
162+
$('#stop').click();
167163
}, function() {
168164
try {
169165
if (!$('.preview iframe').length) return;
@@ -188,19 +184,16 @@ describe('code debugger', function() {
188184
assert.ok(parseInt(result.debugtracetop) > 80);
189185
done();
190186
});
191-
});
192-
it('should be able to highlight lines when hovered', function(done) {
193-
194-
asyncTest(_page, one_step_timeout, null, function() {
187+
});
188+
it('should be able to highlight lines when hovered', function(done) {
189+
asyncTest(_page, one_step_timeout, null, function() {
195190
// Click on the square stop button.
196191
$('#run').mousedown();
197192
$('#run').click();
198-
/* $('#stop').mousedown();
199-
$('#stop').click();*/
200-
window._simulate = function simulate(type, target, options) {
193+
window._simulate = function simulate(type, target, options) {
201194
if ('string' == typeof(target)) {
202195
target = $(target).get(0);
203-
}
196+
}
204197
options = options || {};
205198
var pageX = pageY = clientX = clientY = dx = dy = 0;
206199
var location = options.location || target;
@@ -270,7 +263,6 @@ it('should be able to highlight lines when hovered', function(done) {
270263
}
271264

272265
return{
273-
// poll:"polling",
274266
debugfocus : $(".debugfocus").length
275267
};
276268
}

0 commit comments

Comments
 (0)