Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Elements affected by LocalStyleChange Inherit</title> | |
|
esprehn
2014/01/23 18:38:02
We usually leave off the <html>, <head>, <body> an
rune
2014/01/23 21:10:27
Done.
| |
| 5 <script> | |
| 6 window.onload = function(){ | |
| 7 if (window.testRunner) | |
| 8 testRunner.dumpAsText(); | |
| 9 | |
| 10 document.body.style.color = "pink"; | |
| 11 | |
| 12 var result = "Test not run."; | |
| 13 if (window.internals) { | |
| 14 var count = internals.updateStyleAndReturnAffectedElementCount() ; | |
| 15 if (count == 3) | |
| 16 result = "PASS"; | |
| 17 else | |
| 18 result = "FAIL - expected 3 recalcs, got " + count; | |
|
esprehn
2014/01/23 18:38:02
Use the test framework.
You want to include js-te
rune
2014/01/23 21:10:27
Done.
| |
| 19 } | |
| 20 document.body.innerHTML = result; | |
| 21 } | |
| 22 </script> | |
| 23 <style> | |
| 24 div { color: black; } | |
| 25 </style> | |
| 26 </head> | |
| 27 <body> | |
| 28 <div> | |
| 29 <div></div> | |
| 30 <div></div> | |
| 31 <div></div> | |
| 32 <div></div> | |
| 33 <div></div> | |
| 34 <div></div> | |
| 35 <div></div> | |
| 36 <div></div> | |
| 37 <div></div> | |
| 38 <div></div> | |
| 39 <div></div> | |
| 40 <div></div> | |
| 41 <div></div> | |
| 42 <div></div> | |
| 43 </div> | |
| 44 </body> | |
| 45 </html> | |
| OLD | NEW |