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

Side by Side Diff: LayoutTests/svg/dom/script-tests/SVGFESpecularLightingElement-svgdom-kernelUnitLength.js

Issue 1155743010: Implement SVGFESpecularLightingElement.kernelUnitLengthX/kernelUnitLengthY. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: PS 3 Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 description("Tests JS updates of the 'kernelUnitLength' attribute of the SVGFESp ecularLightingElement object")
2
3 var specularElement = document.createElementNS("http://www.w3.org/2000/svg", "fe SpecularLighting");
4
5 specularElement.setAttribute("kernelUnitLength", "3 4");
6
7 shouldBeEqualToString("specularElement.getAttribute('kernelUnitLength')", "3 4") ;
8 shouldBe("specularElement.kernelUnitLengthX.baseVal", "3");
9 shouldBe("specularElement.kernelUnitLengthY.baseVal", "4");
10 specularElement.kernelUnitLengthX.baseVal = 5;
11 specularElement.kernelUnitLengthY.baseVal = 10;
12 shouldBe("specularElement.kernelUnitLengthX.baseVal", "5");
13 shouldBe("specularElement.kernelUnitLengthY.baseVal", "10");
14 shouldBeEqualToString("specularElement.getAttribute('kernelUnitLength')", "5 10" );
15
16 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698