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

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

Issue 2323653002: Remove SVGSVGElement.viewport attribute (Closed)
Patch Set: rebased Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("Tests whether immutable properties can not be modified.");
2
3 var svgDoc = document.implementation.createDocument("http://www.w3.org/2000/svg" , "svg", null);
4
5 // 'viewport' attribute is immutable (Spec: The object itself and its contents a re both readonly.)
6 var viewport = svgDoc.documentElement.viewport;
7
8 shouldBe("viewport.x", "0");
9 viewport.x = 100;
10
11 shouldBe("viewport.x", "100");
12 shouldBe("svgDoc.documentElement.viewport.x", "0");
13
14 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698