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

Side by Side Diff: LayoutTests/fast/dom/HTMLElement/attr-dir-auto-children.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <script src="../../js/resources/js-test-pre.js"></script> 5 <script src="../../../resources/js-test.js"></script>
6 <style> 6 <style>
7 .testDiv {-webkit-border-start: 5px solid green; -webkit-border-end: 5px solid r ed; } 7 .testDiv {-webkit-border-start: 5px solid green; -webkit-border-end: 5px solid r ed; }
8 </style> 8 </style>
9 </head> 9 </head>
10 <body> 10 <body>
11 <p id="description"></p> 11 <p id="description"></p>
12 <div id="console"></div> 12 <div id="console"></div>
13 <div id="result"></div> 13 <div id="result"></div>
14 <div id="parentDiv"> 14 <div id="parentDiv">
15 <div id="has-dir-auto" dir="auto" class="testDiv"> 15 <div id="has-dir-auto" dir="auto" class="testDiv">
16 <div id="has-dir-rtl" dir="rtl" class="testDiv">מקור השם עברית</div> 16 <div id="has-dir-rtl" dir="rtl" class="testDiv">מקור השם עברית</div>
17 Test test test</div> 17 Test test test</div>
18 18
19 <script> 19 <script>
20 20
21 description('Test that directionality of an element with dir=auto is not affecte d by children that also have the dir attribute.'); 21 description('Test that directionality of an element with dir=auto is not affecte d by children that also have the dir attribute.');
22 22
23 var el = document.getElementById("has-dir-auto"); 23 var el = document.getElementById("has-dir-auto");
24 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord er-right-color')", "'rgb(255, 0, 0)'"); 24 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord er-right-color')", "'rgb(255, 0, 0)'");
25 el = document.getElementById("has-dir-rtl"); 25 el = document.getElementById("has-dir-rtl");
26 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord er-right-color')", "'rgb(0, 128, 0)'"); 26 shouldBe("document.defaultView.getComputedStyle(el, null).getPropertyValue('bord er-right-color')", "'rgb(0, 128, 0)'");
27 document.getElementById("parentDiv").style.display = "none"; 27 document.getElementById("parentDiv").style.display = "none";
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698