Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/dir-auto-insert-text-invalidation.html

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <div> 3 <div>
4 <div id="outerAuto" dir="auto"> 4 <div id="outerAuto" dir="auto">
5 <div id="textInsertionPoint"></div> 5 <div id="textInsertionPoint"></div>
6 <div id="affectedByAuto"></div> 6 <div id="affectedByAuto"></div>
7 <div id="explicitLTR" dir="ltr"> 7 <div id="explicitLTR" dir="ltr">
8 <div></div> 8 <div></div>
9 <div></div> 9 <div></div>
10 <div></div> 10 <div></div>
11 <div></div> 11 <div></div>
12 </div> 12 </div>
13 </div> 13 </div>
14 </div> 14 </div>
15 <script> 15 <script>
16 description("Style invalidation when inserting RTL text descendant of dir=au to"); 16 description("Style invalidation when inserting RTL text descendant of dir=au to");
17 17
18 shouldBeEqualToString("getComputedStyle(outerAuto).direction", "ltr"); 18 shouldBeEqualToString("getComputedStyle(outerAuto).direction", "ltr");
19 shouldBeEqualToString("getComputedStyle(textInsertionPoint).direction", "ltr "); 19 shouldBeEqualToString("getComputedStyle(textInsertionPoint).direction", "ltr ");
20 shouldBeEqualToString("getComputedStyle(affectedByAuto).direction", "ltr"); 20 shouldBeEqualToString("getComputedStyle(affectedByAuto).direction", "ltr");
21 shouldBeEqualToString("getComputedStyle(explicitLTR).direction", "ltr"); 21 shouldBeEqualToString("getComputedStyle(explicitLTR).direction", "ltr");
22 22
23 document.body.offsetTop; // force style and layout clean. 23 document.body.offsetTop; // force style and layout clean.
24 24
25 textInsertionPoint.innerHTML = "&#x604;&#x644;"; 25 textInsertionPoint.innerHTML = "&#x604;&#x644;";
26 26
27 if (window.internals) 27 if (window.internals)
28 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4"); 28 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()" , "4");
29 29
30 shouldBeEqualToString("getComputedStyle(outerAuto).direction", "rtl"); 30 shouldBeEqualToString("getComputedStyle(outerAuto).direction", "rtl");
31 shouldBeEqualToString("getComputedStyle(textInsertionPoint).direction", "rtl "); 31 shouldBeEqualToString("getComputedStyle(textInsertionPoint).direction", "rtl ");
32 shouldBeEqualToString("getComputedStyle(affectedByAuto).direction", "rtl"); 32 shouldBeEqualToString("getComputedStyle(affectedByAuto).direction", "rtl");
33 shouldBeEqualToString("getComputedStyle(explicitLTR).direction", "ltr"); 33 shouldBeEqualToString("getComputedStyle(explicitLTR).direction", "ltr");
34 34
35 debug("\nForcing everything back to LTR with dir attribute:\n"); 35 debug("\nForcing everything back to LTR with dir attribute:\n");
36 36
37 document.body.offsetTop; // force style and layout clean. 37 document.body.offsetTop; // force style and layout clean.
38 38
39 textInsertionPoint.dir = "ltr"; 39 textInsertionPoint.dir = "ltr";
40 40
41 if (window.internals) 41 if (window.internals)
42 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4"); 42 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()" , "4");
43 43
44 shouldBeEqualToString("getComputedStyle(outerAuto).direction", "ltr"); 44 shouldBeEqualToString("getComputedStyle(outerAuto).direction", "ltr");
45 shouldBeEqualToString("getComputedStyle(textInsertionPoint).direction", "ltr "); 45 shouldBeEqualToString("getComputedStyle(textInsertionPoint).direction", "ltr ");
46 shouldBeEqualToString("getComputedStyle(affectedByAuto).direction", "ltr"); 46 shouldBeEqualToString("getComputedStyle(affectedByAuto).direction", "ltr");
47 shouldBeEqualToString("getComputedStyle(explicitLTR).direction", "ltr"); 47 shouldBeEqualToString("getComputedStyle(explicitLTR).direction", "ltr");
48 </script> 48 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698