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

Unified Diff: LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html

Issue 74133005: Remove several uses of toWebCoreStringWithNullCheck(v8::Handle<v8::Value>) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
Index: LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html
diff --git a/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html b/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html
index a6ee0112cae6b066bd244bf0cf7679998063a623..a7186cc38b3edd16e1c72b757c9fe5ae3927efda 100644
--- a/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html
+++ b/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html
@@ -16,6 +16,10 @@ shouldBeEqualToString("document.body.style.margin", "1px");
shouldBe("document.body.style.margin = 2", "2");
shouldBeEqualToString("document.body.style.margin", "2px");
+var badString = { toString: function() { throw "Exception in toString()"; } };
+shouldThrow("document.body.style.margin = badString", "'Exception in toString()'");
+shouldBeEqualToString("document.body.style.margin", "2px"); // Should not reset the previous value.
+
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698