| Index: third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
|
| index 1917b43d5a586d530e55eab0dddd1bf73237ee85..d2c68ce96358e2d9cf4f75020e578722e52848c3 100644
|
| --- a/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/UnsafeSVGAttributeSanitizationTest.cpp
|
| @@ -287,10 +287,10 @@ TEST(UnsafeSVGAttributeSanitizationTest, stringsShouldNotSupportAddition) {
|
| TEST(UnsafeSVGAttributeSanitizationTest,
|
| stripScriptingAttributes_animateElement) {
|
| Vector<Attribute> attributes;
|
| - attributes.append(Attribute(XLinkNames::hrefAttr, "javascript:alert()"));
|
| - attributes.append(Attribute(SVGNames::hrefAttr, "javascript:alert()"));
|
| - attributes.append(Attribute(SVGNames::fromAttr, "/home"));
|
| - attributes.append(Attribute(SVGNames::toAttr, "javascript:own3d()"));
|
| + attributes.push_back(Attribute(XLinkNames::hrefAttr, "javascript:alert()"));
|
| + attributes.push_back(Attribute(SVGNames::hrefAttr, "javascript:alert()"));
|
| + attributes.push_back(Attribute(SVGNames::fromAttr, "/home"));
|
| + attributes.push_back(Attribute(SVGNames::toAttr, "javascript:own3d()"));
|
|
|
| Document* document = Document::create();
|
| Element* element = SVGAnimateElement::create(*document);
|
|
|