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

Side by Side Diff: LayoutTests/svg/dynamic-updates/script-tests/SVGLineElement-svgdom-requiredFeatures.js

Issue 1108293002: Make DOMImplementation.hasFeature() always return true. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: windows compilefix attempt Created 5 years, 7 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 // [Name] SVGLineElement-svgdom-requiredFeatures.js
2 // [Expected rendering result] a series of PASS messages
3
4 createSVGTestCase();
5
6 var lineElement = createSVGElement("line");
7 lineElement.setAttribute("x1", "20");
8 lineElement.setAttribute("y1", "20");
9 lineElement.setAttribute("x2", "200");
10 lineElement.setAttribute("y2", "200");
11 lineElement.setAttribute("stroke", "green");
12 lineElement.setAttribute("stroke-width", "10px");
13
14 rootSVGElement.appendChild(lineElement);
15
16 function repaintTest() {
17 description("Check that SVGLineElement is initially displayed");
18 shouldHaveBBox("lineElement", "180", "180");
19 description("Check that setting requiredFeatures to something invalid makes it not render");
20 lineElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature# BogusFeature");
21 shouldHaveBBox("lineElement", "0", "0");
22 description("Check that setting requiredFeatures to something valid makes it render again");
23 lineElement.requiredFeatures.replaceItem("http://www.w3.org/TR/SVG11/feature #Shape", 0);
24 shouldHaveBBox("lineElement", "180", "180");
25 debug("Check that adding something valid to requiredFeatures keeps rendering the element");
26 lineElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature# Gradient");
27 shouldHaveBBox("lineElement", "180", "180");
28 debug("Check that adding something invalid to requiredFeatures makes it not render");
29 lineElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature# BogusFeature");
30 shouldHaveBBox("lineElement", "0", "0");
31 }
32
33 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698