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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization-quirks-mode.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 | « third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html ('k') | no next file » | 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-quirks-mode.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization-quirks-mode.html b/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization-quirks-mode.html
index 0fad2d60dc2184dd6cece94709f3452abb24dea5..7131716fee2a999e4004ebd4a6ecd74f9f1bab6e 100644
--- a/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization-quirks-mode.html
+++ b/third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization-quirks-mode.html
@@ -1,7 +1,6 @@
-<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 {
@@ -21,13 +20,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 | « third_party/WebKit/LayoutTests/fast/css/variables/custom-properties-serialization.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698