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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html

Issue 2538613002: CSS Variables: Fix double include of testharness.js (Closed)
Patch Set: Created 4 years, 1 month 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 | third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization-quirks-mode.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html b/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html
index ebbbd512d40538fd4ebe34cce0581397943d08ab..0ae58f8724749ae724c1320ffe8e2742796ee09e 100644
--- a/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html
+++ b/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html
@@ -1,8 +1,7 @@
<!DOCTYPE html>
-<script src="../../../resources/testharness.js"></script>
+<meta charset="UTF-8">
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
-<meta charset="UTF-8">
<style>
#test1 {
@@ -22,13 +21,14 @@
<script>
test(function() {
- assert_equals(document.styleSheets[0].cssRules[0].cssText, "#test1 { --camelCase: blue; color: var(--camelCase); }");
- assert_equals(document.styleSheets[0].cssRules[1].cssText, "#test2 { --Aå: 100px; width: var(--Aå); }");
- assert_equals(document.styleSheets[0].cssRules[0].style.getPropertyValue("--camelCase"), " blue");
- assert_equals(document.styleSheets[0].cssRules[0].style.getPropertyValue("color"), "var(--camelCase)");
- assert_equals(document.styleSheets[0].cssRules[1].style.getPropertyValue("--Aå"), " 100px");
- assert_equals(document.styleSheets[0].cssRules[1].style.getPropertyValue("width"), "var(--Aå)");
- assert_equals(document.styleSheets[0].cssRules[2].style.getPropertyValue("background"), "var(--colour)");
- assert_equals(document.styleSheets[0].cssRules[2].style.getPropertyValue("color"), "var(--color)");
+ var cssRules = document.styleSheets[0].cssRules;
+ assert_equals(cssRules[0].cssText, "#test1 { --camelCase: blue; color: var(--camelCase); }");
+ assert_equals(cssRules[1].cssText, "#test2 { --Aå: 100px; width: var(--Aå); }");
+ assert_equals(cssRules[0].style.getPropertyValue("--camelCase"), " blue");
+ assert_equals(cssRules[0].style.getPropertyValue("color"), "var(--camelCase)");
+ assert_equals(cssRules[1].style.getPropertyValue("--Aå"), " 100px");
+ assert_equals(cssRules[1].style.getPropertyValue("width"), "var(--Aå)");
+ assert_equals(cssRules[2].style.getPropertyValue("background"), "var(--colour)");
+ assert_equals(cssRules[2].style.getPropertyValue("color"), "var(--color)");
}, "Custom properties serialization");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization-quirks-mode.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698