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

Unified Diff: LayoutTests/fast/css/recalc-inherit-001.html

Issue 139743017: Don't propagate Inherit ad infinitum. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't abuse timeline tests Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/recalc-inherit-001-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/css/recalc-inherit-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698