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

Unified Diff: LayoutTests/svg/dom/script-tests/SVGViewSpec-defaults.js

Issue 16959011: Get rid of multiple inheritence for SVGViewElement interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 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/dom/script-tests/SVGViewSpec-defaults.js
diff --git a/LayoutTests/svg/dom/script-tests/SVGViewSpec-defaults.js b/LayoutTests/svg/dom/script-tests/SVGViewSpec-defaults.js
index 243b56d6f17fe8f3ab17fe71dd31da2d3454d111..ca1ac71c0381d3a6c9892578d6d3d4e8cf6cb73c 100644
--- a/LayoutTests/svg/dom/script-tests/SVGViewSpec-defaults.js
+++ b/LayoutTests/svg/dom/script-tests/SVGViewSpec-defaults.js
@@ -11,7 +11,7 @@ debug("");
debug("Check initial SVGSVGElement.currentView values on a SVGSVGElement");
shouldBe("currentView.transform.numberOfItems", "0");
shouldBeNull("currentView.viewTarget");
-shouldBe("currentView.zoomAndPan", "SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY");
+shouldBe("currentView.zoomAndPan", "SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY");
shouldBe("currentView.viewBox.baseVal.x", "0");
shouldBe("currentView.viewBox.baseVal.y", "0");
shouldBe("currentView.viewBox.baseVal.width", "0");
@@ -22,12 +22,12 @@ shouldBeEqualToString("currentView.viewBoxString", "0 0 0 0");
shouldBeEqualToString("currentView.preserveAspectRatioString", "xMidYMid meet");
shouldBeEqualToString("currentView.transformString", "");
shouldBeEqualToString("currentView.viewTargetString", "");
-shouldBe("currentView.zoomAndPan", "SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY");
+shouldBe("currentView.zoomAndPan", "SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY");
debug("");
-debug("Try changing zoomAndPan - none of these will work, as SVGViewSpec is fully readonly - even the animated properties it inherits from parent classes like SVGZoomAndPan/SVGFitToViewBox");
-shouldThrow("currentView.zoomAndPan = SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE");
-shouldBe("currentView.zoomAndPan", "SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY");
+debug("Try changing zoomAndPan - none of these will work, as SVGViewSpec is fully readonly - even the animated properties it inherits from supplmental classes like SVGViewElement/SVGFitToViewBox");
+shouldThrow("currentView.zoomAndPan = SVGViewElement.SVG_ZOOMANDPAN_DISABLE");
+shouldBe("currentView.zoomAndPan", "SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY");
debug("");
debug("Try changing viewBox - this has no affect on the SVGSVGElement the viewSpec belongs to - it exposed all its properties as read-only");
« no previous file with comments | « LayoutTests/svg/dom/script-tests/SVGViewSpec.js ('k') | LayoutTests/webexposed/global-constructors-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698