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

Side by Side Diff: LayoutTests/fast/dom/custom/unresolved-pseudoclass.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 <style> 2 <style>
3 x-x { 3 x-x {
4 color: rgb(0, 222, 0); 4 color: rgb(0, 222, 0);
5 } 5 }
6 6
7 [is=x-y]:not(:unresolved) { 7 [is=x-y]:not(:unresolved) {
8 color: rgb(0, 111, 0); 8 color: rgb(0, 111, 0);
9 } 9 }
10 10
11 :unresolved { 11 :unresolved {
12 color: rgb(0, 0, 222); 12 color: rgb(0, 0, 222);
13 } 13 }
14 14
15 [is=x-y]:unresolved { 15 [is=x-y]:unresolved {
16 border-color: rgb(0, 0, 111); 16 border-color: rgb(0, 0, 111);
17 } 17 }
18 </style> 18 </style>
19 <script src="../../js/resources/js-test-pre.js"></script> 19 <script src="../../../resources/js-test.js"></script>
20 <div id="container"></div> 20 <div id="container"></div>
21 <x-x id="a"></x-x> 21 <x-x id="a"></x-x>
22 <span id="b" is="x-y"></span> 22 <span id="b" is="x-y"></span>
23 <script> 23 <script>
24 description('Tests the :unresolved pseudoclass.'); 24 description('Tests the :unresolved pseudoclass.');
25 25
26 var a = document.querySelector('#a'); 26 var a = document.querySelector('#a');
27 shouldBe('document.querySelector("x-x:unresolved")', 'a'); 27 shouldBe('document.querySelector("x-x:unresolved")', 'a');
28 shouldBe('window.getComputedStyle(a).color', '"rgb(0, 0, 222)"'); 28 shouldBe('window.getComputedStyle(a).color', '"rgb(0, 0, 222)"');
29 29
(...skipping 12 matching lines...) Expand all
42 var Y = document.register('x-y', {extends: 'span', prototype: Object.create(HTML SpanElement.prototype)}); 42 var Y = document.register('x-y', {extends: 'span', prototype: Object.create(HTML SpanElement.prototype)});
43 var d = new Y(); 43 var d = new Y();
44 document.body.insertBefore(d, b); 44 document.body.insertBefore(d, b);
45 shouldBe('window.getComputedStyle(d).color', '"rgb(0, 111, 0)"'); 45 shouldBe('window.getComputedStyle(d).color', '"rgb(0, 111, 0)"');
46 46
47 // Registering is="x-y" should have changed the styles of #b. 47 // Registering is="x-y" should have changed the styles of #b.
48 shouldBe('window.getComputedStyle(b).color', '"rgb(0, 111, 0)"'); 48 shouldBe('window.getComputedStyle(b).color', '"rgb(0, 111, 0)"');
49 49
50 successfullyParsed = true; 50 successfullyParsed = true;
51 </script> 51 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698