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

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

Issue 2133983003: Remove SVGZoomEvent interface and onzoom attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 5 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: third_party/WebKit/LayoutTests/svg/custom/script-tests/immutable-properties.js
diff --git a/third_party/WebKit/LayoutTests/svg/custom/script-tests/immutable-properties.js b/third_party/WebKit/LayoutTests/svg/custom/script-tests/immutable-properties.js
index d0c14ac55bf645b21bf639b53fe224583380654c..8d6db64e44557dccb04266d40086316d2996d18b 100644
--- a/third_party/WebKit/LayoutTests/svg/custom/script-tests/immutable-properties.js
+++ b/third_party/WebKit/LayoutTests/svg/custom/script-tests/immutable-properties.js
@@ -11,38 +11,4 @@ viewport.x = 100;
shouldBe("viewport.x", "100");
shouldBe("svgDoc.documentElement.viewport.x", "0");
-// Every attribute of SVGZoomEvent is immutable (Spec: The object itself and its contents are both readonly.)
-var zoomEvent = svgDoc.createEvent("SVGZoomEvents");
-
-// 'zoomRectScreen' property
-var zoomRectScreen = zoomEvent.zoomRectScreen;
-
-shouldBe("zoomRectScreen.x", "0");
-shouldThrow("zoomRectScreen.x = 100;");
-
-// 'previousScale' property
-shouldBe("zoomEvent.previousScale", "0")
-zoomEvent.previousScale = 200;
-shouldBe("zoomEvent.previousScale", "0")
-
-// 'previousTranslate' property
-var previousTranslate = zoomEvent.previousTranslate;
-
-shouldBe("previousTranslate.x", "0");
-shouldThrow("previousTranslate.x = 300;");
-
-shouldBe("zoomEvent.previousTranslate.x", "0");
-
-// 'newScale' property
-shouldBe("zoomEvent.newScale", "0");
-shouldThrow("zoomEvent.newScale = 200;");
-shouldBe("zoomEvent.newScale", "0");
-
-// 'newTranslate' property
-var newTranslate = zoomEvent.newTranslate;
-
-shouldBe("newTranslate.x", "0");
-shouldThrow("newTranslate.x = 300;");
-shouldBe("newTranslate.x", "0");
-
var successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698