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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-item.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 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
Index: third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-item.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-item.html b/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-item.html
index 93b21439901e694a9b38f785adbe8556e92eb49d..593e2cea5e7b91025e655f31850b05088fe39e1c 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-item.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-item.html
@@ -4,6 +4,20 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/css-style-item.js"></script>
+<script>
+description("This tests indexing outside the range of the style object.");
+
+var element = document.createElement('div');
+element.style.color = 'red';
+document.documentElement.appendChild(element);
+var style = element.style;
+
+shouldEvaluateTo('style.length', 1);
+shouldBeEqualToString('style[0]', 'color');
+shouldBeUndefined('style[1]');
+shouldBeUndefined('style[-1]')
+
+document.documentElement.removeChild(element);
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698