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

Unified Diff: LayoutTests/svg/custom/script-tests/immutable-properties.js

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline Created 6 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
Index: LayoutTests/svg/custom/script-tests/immutable-properties.js
diff --git a/LayoutTests/svg/custom/script-tests/immutable-properties.js b/LayoutTests/svg/custom/script-tests/immutable-properties.js
index 0182bd6a372339f0c458b669a68d42bdc3d00a54..d0c14ac55bf645b21bf639b53fe224583380654c 100644
--- a/LayoutTests/svg/custom/script-tests/immutable-properties.js
+++ b/LayoutTests/svg/custom/script-tests/immutable-properties.js
@@ -29,23 +29,20 @@ shouldBe("zoomEvent.previousScale", "0")
var previousTranslate = zoomEvent.previousTranslate;
shouldBe("previousTranslate.x", "0");
-previousTranslate.x = 300;
+shouldThrow("previousTranslate.x = 300;");
-shouldBe("previousTranslate.x", "300");
shouldBe("zoomEvent.previousTranslate.x", "0");
// 'newScale' property
shouldBe("zoomEvent.newScale", "0");
-zoomEvent.newScale = 200;
+shouldThrow("zoomEvent.newScale = 200;");
shouldBe("zoomEvent.newScale", "0");
// 'newTranslate' property
-var newTranslate = zoomEvent.previousTranslate;
+var newTranslate = zoomEvent.newTranslate;
shouldBe("newTranslate.x", "0");
-newTranslate.x = 300;
-
-shouldBe("newTranslate.x", "300");
-shouldBe("zoomEvent.newTranslate.x", "0");
+shouldThrow("newTranslate.x = 300;");
+shouldBe("newTranslate.x", "0");
var successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698