Changeset 177682 in webkit
- Timestamp:
- Dec 23, 2014 12:26:49 AM (9 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r177679 r177682 1 2014-12-23 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 3 shouldBecomeEqual() behaves as shouldBe() if the testing expression returns the expected value 4 https://bugs.webkit.org/show_bug.cgi?id=133939 5 6 Reviewed by Darin Adler. 7 8 First call of eval(expression) inside shouldBecomeEqual was always 9 made synchronously. If the testing expression returns the same value 10 as expected one then shouldBecomeEqual() will immediately report PASS, 11 for example, 12 13 shouldBecomeEqual(internals.hasSpellingMarker("wellcome"), false); 14 15 in consequence, assuming asynchronous path of spellchecking, spelling markers 16 may appear after a while. 17 18 The bug was caused by checking a condition at the beginning of shouldBecomeEqual(), 19 before calling a timer. As a result, queued asynchronous events doesn't effect 20 this checking. 21 22 * TestExpectations: 23 This fix reveals new bugs in execDeleteCommand() behaviour, two tests need 24 to marked as failure now. 25 26 * resources/js-test-pre.js: 27 (.condition): 28 (shouldBecomeEqual): 29 (shouldBecomeDifferent): 30 * resources/js-test.js: 31 (.condition): 32 (shouldBecomeEqual): 33 (shouldBecomeDifferent): 34 Always check a condition on timer. 35 1 36 2014-12-22 Alexey Proskuryakov <ap@apple.com> 2 37 -
trunk/LayoutTests/TestExpectations
r177653 r177682 10 10 11 11 webkit.org/b/116473 editing/selection/user-drag-element-and-user-select-none.html [ Failure ] 12 13 webkit.org/b/139862 editing/spelling/editing-multiple-words-with-markers.html [ Timeout ] 14 webkit.org/b/139862 editing/spelling/grammar-edit-word.html [ Timeout ] 12 15 13 16 # media/W3C/video/networkState/networkState_during_progress.html is flaky -
trunk/LayoutTests/resources/js-test-pre.js
r166668 r177682 290 290 debug("WARN: shouldBecomeEqual() expects string arguments"); 291 291 292 var condition = function() {292 function condition() { 293 293 var exception; 294 294 var _av; … … 306 306 } 307 307 return false; 308 } ;309 _waitForCondition(condition, completionHandler);308 } 309 setTimeout(_waitForCondition, 0, condition, completionHandler); 310 310 } 311 311 … … 402 402 debug("WARN: shouldBecomeDifferent() expects string arguments"); 403 403 404 var condition = function() {404 function condition() { 405 405 var exception; 406 406 var _av; … … 418 418 } 419 419 return false; 420 } ;421 _waitForCondition(condition, completionHandler);420 } 421 setTimeout(_waitForCondition, 0, condition, completionHandler); 422 422 } 423 423 -
trunk/LayoutTests/resources/js-test.js
r177501 r177682 257 257 debug("WARN: shouldBecomeEqual() expects string arguments"); 258 258 259 var condition = function() {259 function condition() { 260 260 var exception; 261 261 var _av; … … 273 273 } 274 274 return false; 275 } ;276 _waitForCondition(condition, completionHandler);275 } 276 setTimeout(_waitForCondition, 0, condition, completionHandler); 277 277 } 278 278 … … 369 369 debug("WARN: shouldBecomeDifferent() expects string arguments"); 370 370 371 var condition = function() {371 function condition() { 372 372 var exception; 373 373 var _av; … … 385 385 } 386 386 return false; 387 } ;388 _waitForCondition(condition, completionHandler);387 } 388 setTimeout(_waitForCondition, 0, condition, completionHandler); 389 389 } 390 390
Note: See TracChangeset
for help on using the changeset viewer.