|
Lines 1-3
a/LayoutTests/ChangeLog_sec1
|
|
|
1 |
2014-12-15 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 NOBODY (OOPS!). |
| 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 |
* editing/spelling/editing-multiple-words-with-markers.html: |
| 23 |
Since this tests if spelling markers do not appear after a selection change |
| 24 |
after r164401 we need to call updateEditorUINowIfScheduled(). Without it editor |
| 25 |
would report old position of markers. Additionally, add timeout to make things |
| 26 |
testable in the browser. |
| 27 |
Without proposed change in shouldBecomeEqual, this bug was not revealed. |
| 28 |
|
| 29 |
* editing/spelling/script-tests/spelling-backspace-between-lines.js: |
| 30 |
Replace magic number 100 with newly defined value. |
| 31 |
* editing/spelling/spellcheck-attribute.html: Ditto. |
| 32 |
* editing/spelling/spelling-backspace-between-lines.html: Ditto. |
| 33 |
|
| 34 |
* editing/spelling/grammar-edit-word.html: Ditto. |
| 35 |
The reason why updateEditorUINowIfScheduled() is not mandatory here is that |
| 36 |
the test uses editing commands which already call updateEditorUINowIfScheduled(). |
| 37 |
However, timeout needs to be added as while grammar checking |
| 38 |
Editor::respondToChangedSelection() is invoked in some circumstances |
| 39 |
and causes asynchronous spellchecker updates. |
| 40 |
This is probably a new bug that was not revealed yet. |
| 41 |
|
| 42 |
* editing/spelling/resources/util.js: Ditto. |
| 43 |
Introduce the timeout value for pending selection updates that are |
| 44 |
required by spellchecker. |
| 45 |
|
| 46 |
* resources/js-test-pre.js: |
| 47 |
(shouldBecomeEqual): |
| 48 |
(shouldBecomeDifferent): |
| 49 |
Always check a condition on timer. |
| 50 |
|
| 1 |
2014-12-16 Shivakumar JM <shiva.jm@samsung.com> |
51 |
2014-12-16 Shivakumar JM <shiva.jm@samsung.com> |
| 2 |
|
52 |
|
| 3 |
text node should not be created, On setting document.title to the empty string. |
53 |
text node should not be created, On setting document.title to the empty string. |