Chromium Code Reviews| Index: LayoutTests/fast/css/recalc-inherit-001.html |
| diff --git a/LayoutTests/fast/css/recalc-inherit-001.html b/LayoutTests/fast/css/recalc-inherit-001.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..90213bc488f328edd13fe097f0c725f5e23cf235 |
| --- /dev/null |
| +++ b/LayoutTests/fast/css/recalc-inherit-001.html |
| @@ -0,0 +1,45 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| + <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.
|
| + <script> |
| + window.onload = function(){ |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| + document.body.style.color = "pink"; |
| + |
| + var result = "Test not run."; |
| + if (window.internals) { |
| + var count = internals.updateStyleAndReturnAffectedElementCount(); |
| + if (count == 3) |
| + result = "PASS"; |
| + else |
| + 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.
|
| + } |
| + document.body.innerHTML = result; |
| + } |
| + </script> |
| + <style> |
| + div { color: black; } |
| + </style> |
| +</head> |
| +<body> |
| + <div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + <div></div> |
| + </div> |
| +</body> |
| +</html> |