|
Lines 1-5
a/LayoutTests/ChangeLog_sec1
|
| 1 |
2014-12-18 Grzegorz Czajkowski <g.czajkowski@samsung.com> |
1 |
2014-12-18 Grzegorz Czajkowski <g.czajkowski@samsung.com> |
| 2 |
|
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 |
|
| 36 |
2014-12-18 Grzegorz Czajkowski <g.czajkowski@samsung.com> |
| 37 |
|
| 3 |
Remove timeout from shouldBecome* functions in js-test.js |
38 |
Remove timeout from shouldBecome* functions in js-test.js |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=139767 |
39 |
https://bugs.webkit.org/show_bug.cgi?id=139767 |
| 5 |
|
40 |
|