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> |