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

Unified Diff: LayoutTests/fast/css/variables/cssom-computed-style.html

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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: LayoutTests/fast/css/variables/cssom-computed-style.html
diff --git a/LayoutTests/fast/css/variables/cssom-computed-style.html b/LayoutTests/fast/css/variables/cssom-computed-style.html
index d5692b188a01e480cf4468005ed36a0c3bd6d59b..576e648a70599fe1ad05f9af01629d1177e66d49 100644
--- a/LayoutTests/fast/css/variables/cssom-computed-style.html
+++ b/LayoutTests/fast/css/variables/cssom-computed-style.html
@@ -19,7 +19,7 @@ var computedBodyStyle = getComputedStyle(document.querySelector("body"));
shouldBeEqualToString('computedStyle.var.toString()', '[object CSSVariablesMap]');
shouldBe('computedStyle.var === computedStyle.var', 'true');
-shouldThrow('computedStyle.var.set("create", "test")', '"NoModificationAllowedError: Failed to set the \'create\' property on a computed \'CSSStyleDeclaration\': computed styles are read-only."');
+shouldThrow('computedStyle.var.set("create", "test")', '"NoModificationAllowedError: Failed to execute \'set\' on \'CSSVariablesMap\': These styles are computed, and therefore the \'create\' property is read-only."');
shouldBe('computedStyle.var.size', '3');
shouldBe('computedBodyStyle.var.size', '0');
shouldBeEqualToString('computedStyle.var.get("stylesheet")', 'pass');
@@ -43,8 +43,8 @@ computedBodyStyle.var.forEach(function(value, name, map) {
});
shouldBe('emptyVarForEachIterations.length', '0');
-shouldThrow('computedStyle.var.set("inline", "fail")', '"NoModificationAllowedError: Failed to set the \'inline\' property on a computed \'CSSStyleDeclaration\': computed styles are read-only."');
-shouldThrow('computedStyle.var.clear()', '"NoModificationAllowedError: Failed to clear variables from a computed \'CSSStyleDeclaration\': computed styles are read-only."');
+shouldThrow('computedStyle.var.set("inline", "fail")', '"NoModificationAllowedError: Failed to execute \'set\' on \'CSSVariablesMap\': These styles are computed, and therefore the \'inline\' property is read-only."');
+shouldThrow('computedStyle.var.clear()', '"NoModificationAllowedError: Failed to execute \'clear\' on \'CSSVariablesMap\': These styles are computed, and therefore variables may not be cleared."');
shouldBe('computedStyle.var.delete("inline")', 'false');
shouldBeEqualToString('computedStyle.var.get("inline")', 'pass');
</script>

Powered by Google App Engine
This is Rietveld 408576698