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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/preferred-stylesheet-order.html

Issue 1769843002: Added tests for preferred sheet insertion order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/preferred-stylesheet-order-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <div id="t1">This text should be green</div>
4 <script>
5 description("Preferred stylesheet where insertion order is reversed tree order") ;
6
7 function createStyleElement(text, title) {
8 var elm = document.createElement("style");
9 elm.setAttribute("title", title);
10 elm.appendChild(document.createTextNode(text));
11 return elm;
12 }
13
14 document.head.appendChild(createStyleElement("#t1 {color:green}", "preferred"));
15 document.head.appendChild(createStyleElement("#t1 {color:red}", "notpreferred")) ;
16
17 shouldBeEqualToString("getComputedStyle(t1).color", "rgb(0, 128, 0)");
18 shouldBeEqualToString("document.preferredStylesheetSet", "preferred");
19 shouldBeEqualToString("document.selectedStylesheetSet", "preferred");
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/preferred-stylesheet-order-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698