OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <link rel="stylesheet" href="style-1-of-3.css" integrity="ni://sha256;Bp fBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE="></link> | |
5 <link rel="stylesheet" href="style-2-of-3.css" integrity="ni://sha384;XV VXBGoYw6AJOh9J/Z8pBDMVVPfkBpngexkA7JqZu8d5GENND6TEIup/tA1v5GPr"></link> | |
6 <link rel="stylesheet" href="style-3-of-3.css" integrity="ni://sha512;tb UPioKbVBplr0b1ucnWB57SJWt4x9dOE0Vy2mzCXvH3FepqDZ+07yMK81ytlg0MPaIrPAjcHqba5csorD WtKg=="></link> | |
7 </head> | |
8 <body> | |
9 <script> | |
10 if (window.testRunner) | |
11 testRunner.dumpAsText(); | |
12 </script> | |
13 <p id="p1">Test 1</p> | |
14 <p id="p2">Test 2</p> | |
15 <p id="p3">Test 3</p> | |
16 <script> | |
17 var color = window.getComputedStyle(document.querySelector('#p1')).color ; | |
18 if (color === "rgb(0, 128, 0)") | |
Mike West
2014/10/02 18:52:44
Please convert these to testharness.js tests, and
jww
2014/10/02 22:12:18
Done.
| |
19 alert("FAIL (1/3): The 'p#1' element's text is green, which means th e style was incorrectly loaded."); | |
20 else | |
21 alert("PASS (1/3): The 'p#1' element's text is " + color + ", which means the style was correctly blocked."); | |
22 var color = window.getComputedStyle(document.querySelector('#p2')).color ; | |
23 if (color === "rgb(0, 128, 0)") | |
24 alert("FAIL (2/3): The 'p#2' element's text is green, which means th e style was incorrectly loaded."); | |
25 else | |
26 alert("PASS (2/3): The 'p#2' element's text is " + color + ", which means the style was correctly blocked."); | |
27 var color = window.getComputedStyle(document.querySelector('#p3')).color ; | |
28 if (color === "rgb(0, 128, 0)") | |
29 alert("FAIL (3/3): The 'p#3' element's text is green, which means th e style was incorrectly loaded."); | |
30 else | |
31 alert("PASS (3/3): The 'p#3' element's text is " + color + ", which means the style was correctly blocked."); | |
32 </script> | |
33 </body> | |
34 </html> | |
OLD | NEW |