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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.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-properties-case-sensitive.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.html b/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.html
index 022ec89114180617cb92920b7f55fd94bda2642f..a1d4cf83a7fc58ea38a99079ec459492771cb787 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.html
@@ -4,6 +4,28 @@
<script src="../../../resources/js-test.js"></script>
</head>
<body>
-<script src="script-tests/css-properties-case-sensitive.js"></script>
+<script>
+description(
+'This test checks that access to the CSS float property via JavaScript properties on DOM elements is case sensitive.'
+);
+
+var element = document.createElement('a');
+element.style.float = 'left';
+
+debug('normal cases');
+debug('');
+
+shouldBe("element.style.float", "'left'");
+shouldBeUndefined("element.style.Float");
+
+debug('');
+debug('"css" prefix');
+debug('');
+
+shouldBe("element.style.cssFloat", "'left'");
+shouldBeUndefined("element.style.CssFloat");
+shouldBeUndefined("element.style.Cssfloat");
+shouldBeUndefined("element.style.cssfloat");
+</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698