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

Unified Diff: LayoutTests/svg/dom/SVGLengthList-basics.xhtml

Issue 827373003: Drop redundant null checks in SVGListPropertyTearOffHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix tests and expectations Created 5 years, 11 months 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 | LayoutTests/svg/dom/SVGLengthList-basics-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/dom/SVGLengthList-basics.xhtml
diff --git a/LayoutTests/svg/dom/SVGLengthList-basics.xhtml b/LayoutTests/svg/dom/SVGLengthList-basics.xhtml
index af37feb4df7099d2ff6e3cd68d702b5e69399694..fb55181205f225edd3ebe53b15af643d029065f1 100644
--- a/LayoutTests/svg/dom/SVGLengthList-basics.xhtml
+++ b/LayoutTests/svg/dom/SVGLengthList-basics.xhtml
@@ -116,6 +116,13 @@
shouldThrow("text1.x.baseVal.replaceItem(text1, 0)");
shouldThrow("text1.x.baseVal.replaceItem(null, 0)");
+ debug("");
+ debug("Test uncommon values for indexed setter");
+ shouldThrow("text1.x.baseVal[0] = 30");
+ shouldThrow("text1.x.baseVal[0] = 'aString'");
+ shouldThrow("text1.x.baseVal[0] = text1");
+ shouldThrow("text1.x.baseVal[0] = null");
+
shouldBe("text1.x.baseVal.replaceItem(text1.x.baseVal.getItem(0), 0)", "text1.x.baseVal.getItem(0)");
shouldBe("text1.x.baseVal.numberOfItems", "4");
shouldBe("text1.x.baseVal.getItem(0).value", "1");
« no previous file with comments | « no previous file | LayoutTests/svg/dom/SVGLengthList-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698