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

Issue 2741463002: Remove SVGTests.requiredFeatures attribute

Created:
3 years, 9 months ago by riju_
Modified:
3 years, 8 months ago
Reviewers:
fs
CC:
fs, android-webview-reviews_chromium.org, blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, krit, eae+blinkwatch, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove SVGTests.requiredFeatures attribute In SVG2, hasFeature always return true. So requiredFeatures attribute not doing anything useful. It has been removed from the spec: https://github.com/w3c/svgwg/commit/9a30d01f6410dc516c5f874d71e957230a3448cd https://www.w3.org/2015/06/09-svg-irc#T15-35-40 Remove layout tests for requiredFeature BUG=635420

Patch Set 1 #

Patch Set 2 : Remove hasFeature() in next CL, too many Layout tests #

Patch Set 3 : Try to fix layout tests #

Patch Set 4 : Rebaseline #

Patch Set 5 : rebase #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+34239 lines, -799 lines) Patch
M android_webview/tools/system_webview_shell/test/data/webexposed/global-interface-listing-expected.txt View 1 2 3 4 4 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/root-layer-scrolls View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/external/wpt/svg/historical-expected.txt View 1 2 4 1 chunk +0 lines, -43 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/svg/interfaces.html View 1 2 4 1 chunk +0 lines, -1 line 1 comment Download
M third_party/WebKit/LayoutTests/external/wpt/svg/interfaces-expected.txt View 1 2 3 4 1 chunk +0 lines, -17 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt View 1 2 3 4 2 chunks +14 lines, -19 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/external/wpt/svg/interfaces-expected.txt View 1 2 3 4 1 chunk +6072 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 1 chunk +7856 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/external/wpt/svg/interfaces-expected.txt View 1 2 3 4 1 chunk +6072 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt View 1 2 3 4 1 chunk +138 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 1 chunk +7856 lines, -0 lines 1 comment Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 4 chunks +0 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/platform/win/external/wpt/svg/interfaces-expected.txt View 1 2 3 4 1 chunk +6072 lines, -0 lines 1 comment Download
M third_party/WebKit/LayoutTests/platform/win/svg/W3C-SVG-1.1-SE/svgdom-over-01-f-expected.txt View 1 2 3 4 2 chunks +14 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 4 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/svgdom-over-01-f.svg View 1 2 4 1 chunk +0 lines, -3 lines 1 comment Download
D third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/types-dom-06-f.svg View 1 2 4 1 chunk +0 lines, -133 lines 1 comment Download
M third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/struct-image-02-b.svg View 1 2 4 1 chunk +4 lines, -4 lines 1 comment Download
M third_party/WebKit/LayoutTests/svg/animations/animate-test-attributes-crash.html View 1 2 4 2 chunks +1 line, -3 lines 1 comment Download
D third_party/WebKit/LayoutTests/svg/custom/text-use-click-crash.xhtml View 1 2 4 1 chunk +0 lines, -33 lines 1 comment Download
D third_party/WebKit/LayoutTests/svg/custom/text-use-click-crash-expected.txt View 1 2 4 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/LayoutTests/svg/dom/SVGStringList.html View 4 1 chunk +0 lines, -11 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/dom/SVGStringList-basics.xhtml View 4 1 chunk +0 lines, -240 lines 1 comment Download
D third_party/WebKit/LayoutTests/svg/dom/SVGStringList-basics-expected.txt View 4 1 chunk +0 lines, -198 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/dom/SVGStringList-expected.txt View 4 1 chunk +0 lines, -20 lines 0 comments Download
D third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGStringList.js View 4 1 chunk +0 lines, -21 lines 1 comment Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 4 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTests.h View 4 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTests.cpp View 1 2 3 4 3 chunks +2 lines, -12 lines 1 comment Download
M third_party/WebKit/Source/core/svg/SVGTests.idl View 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 25 (23 generated)
riju_
Hi Fredrick, Can you take a look? I will send an Intent to deprecate/remove soon.
3 years, 9 months ago (2017-03-23 16:28:17 UTC) #22
fs
3 years, 9 months ago (2017-03-23 16:55:44 UTC) #25
For all tests that can be rewritten to not use requiredFeatures, let's do that
rewrite as a separate CL and land that before this one. (No need to wait for the
intent-dance to complete before doing that either.)

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/external/wpt/svg/interfaces.html (left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/external/wpt/svg/interfaces.html:1435:
SVGStringList: ['a.requiredFeatures'],
You should find a SVGStringList elsewhere instead of removing this I think.

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/platform/mac-retina/virtual/stable/webexposed/global-interface-listing-expected.txt
(right):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/platform/mac-retina/virtual/stable/webexposed/global-interface-listing-expected.txt:1:
CONSOLE WARNING: line 95: 'webkitURL' is deprecated. Please use 'URL' instead.
Why didn't this file get de-duplicated? (I.e how does the different target
platforms differ?)

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/platform/win/external/wpt/svg/interfaces-expected.txt
(right):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/platform/win/external/wpt/svg/interfaces-expected.txt:1:
CONSOLE MESSAGE: line 251: callback not yet supported
Ditto.

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/svgdom-over-01-f.svg
(left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/svgdom-over-01-f.svg:135: new
Subtest("i.requiredFeatures.numberOfItems == 0"),
Either replace this to use a different SVGStringList attribute, or leave it as
is.

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/types-dom-06-f.svg
(left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1-SE/types-dom-06-f.svg:1: <svg
id="svg-root" width="100%" height="100%"
I guess we could remove this test because SVGStringList-basics (rewritten)
should hopefully provide the the same coverage. Please double-check that before
removing though.

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/struct-image-02-b.svg
(left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/W3C-SVG-1.1/struct-image-02-b.svg:98: <rect
fill="red"  x="240" y="150" width="240" height="150"
requiredFeatures="org.w3c.svg.static" systemLanguage=""/>
Just keep these as is and update the expected results instead (if they differ.)

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File
third_party/WebKit/LayoutTests/svg/animations/animate-test-attributes-crash.html
(left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/animations/animate-test-attributes-crash.html:3:
<animate attributeName="requiredFeatures"/>
This test could be left as is. (This is still an attribute that can't be
animated.)

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/svg/custom/text-use-click-crash.xhtml
(left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/custom/text-use-click-crash.xhtml:1: <html
xmlns="http://www.w3.org/1999/xhtml">
I don't see a need to remove this test.

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/svg/dom/SVGStringList-basics.xhtml (left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/dom/SVGStringList-basics.xhtml:18:
shouldBe("text1.requiredFeatures.numberOfItems", "3");
Ditto.

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
File third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGStringList.js
(left):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Layo...
third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGStringList.js:1:
description("This test checks the SVGStringList API - utilizing the
requiredFeatures property of SVGRectElement");
This test should be rewritten to use another SVGStringList (we can do that and
land it before doing the removal.) It would probably make sense to just merge
this with the SVGStringList-basics test though.

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/svg/SVGTests.cpp (right):

https://codereview.chromium.org/2741463002/diff/90001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/svg/SVGTests.cpp:57: // No need to check
requiredFeatures since hasFeature always returns true.
Nit: Remove this comment (and the blank line following it) as well.

Powered by Google App Engine
This is Rietveld 408576698