WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
77685
Ref Tests should support plain SVG files
https://bugs.webkit.org/show_bug.cgi?id=77685
Summary
Ref Tests should support plain SVG files
Dirk Schulze
Reported
2012-02-02 14:49:14 PST
Ref Tests should support plain SVG files with the ending .svg. It would be great to have them for SVG tests as well.
Attachments
fixes the bug
(7.83 KB, patch)
2012-02-03 03:21 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
fixes the bug
(9.62 KB, patch)
2012-02-03 12:08 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Hayato Ito
Comment 1
2012-02-02 18:03:12 PST
That sounds reasonable. My initial thought is if we have foo.svg and foo-expected.svg, we should consider it as a reftest. Is this a feasible idea?
Ryosuke Niwa
Comment 2
2012-02-02 18:06:32 PST
(In reply to
comment #1
)
> That sounds reasonable. > > My initial thought is if we have foo.svg and foo-expected.svg, we should consider it as a reftest. > Is this a feasible idea?
Yes, that sounds reasonable. As I said on IRC, we just need to modify functions in base.py that find reference files.
Ryosuke Niwa
Comment 3
2012-02-03 03:10:04 PST
A patch coming...
Ryosuke Niwa
Comment 4
2012-02-03 03:21:31 PST
Created
attachment 125301
[details]
fixes the bug
Tony Chang
Comment 5
2012-02-03 11:23:08 PST
Comment on
attachment 125301
[details]
fixes the bug View in context:
https://bugs.webkit.org/attachment.cgi?id=125301&action=review
> Tools/Scripts/webkitpy/layout_tests/port/base.py:472 > + for (expectation, prefix) in [('==', ''), ('!=', '-mismatch')]:
Nit: Remove unnecessary () and use () instead of []: for expectation, prefix in (('==', ''), ('!=', '-mismatch')):
> Tools/Scripts/webkitpy/layout_tests/port/base.py:482 > + return any(self.reference_files(test_name))
Do you need any() here? Don't you just want to see if the return value is not empty?
Ryosuke Niwa
Comment 6
2012-02-03 12:00:35 PST
Comment on
attachment 125301
[details]
fixes the bug View in context:
https://bugs.webkit.org/attachment.cgi?id=125301&action=review
>> Tools/Scripts/webkitpy/layout_tests/port/base.py:472 >> + for (expectation, prefix) in [('==', ''), ('!=', '-mismatch')]: > > Nit: Remove unnecessary () and use () instead of []: > for expectation, prefix in (('==', ''), ('!=', '-mismatch')):
Okay, will fix.
>> Tools/Scripts/webkitpy/layout_tests/port/base.py:482 >> + return any(self.reference_files(test_name)) > > Do you need any() here? Don't you just want to see if the return value is not empty?
Oh oops, you're right. No need.
Ryosuke Niwa
Comment 7
2012-02-03 12:08:09 PST
I'm gonna just get rid of is_reftest. It's a useless function now.
Ryosuke Niwa
Comment 8
2012-02-03 12:08:47 PST
Created
attachment 125379
[details]
fixes the bug
Ryosuke Niwa
Comment 9
2012-02-03 13:48:40 PST
Comment on
attachment 125379
[details]
fixes the bug Clearing flags on attachment: 125379 Committed
r106692
: <
http://trac.webkit.org/changeset/106692
>
Ryosuke Niwa
Comment 10
2012-02-03 13:48:45 PST
All reviewed patches have been landed. Closing bug.
James Robinson
Comment 11
2012-02-03 19:31:05 PST
This broke webkitpy tests on chromium win:
http://build.webkit.org/builders/Chromium%20Win%20Release%20%28Tests%29/builds/23418/steps/webkitpy-test/logs/stdio
FAIL: test_reference_files (webkitpy.layout_tests.port.base_unittest.PortTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "E:\b\chromium-win-release-tests\build\Tools\Scripts\webkitpy\layout_tests\port\base_unittest.py", line 360, in test_reference_files self.assertEqual(port.reference_files('passes/svgreftest.svg'), [('==', '/test.checkout/LayoutTests/passes/svgreftest-expected.svg')]) AssertionError: [('==', 'c:/test.checkout/LayoutTests/passes/svgreftest-expected.svg')] != [('==', '/test.checkout/LayoutTests/passes/svgreftest-expected.svg')] ----------------------------------------------------------------------
Ryosuke Niwa
Comment 12
2012-02-03 19:33:38 PST
(In reply to
comment #11
)
> This broke webkitpy tests on chromium win: > >
http://build.webkit.org/builders/Chromium%20Win%20Release%20%28Tests%29/builds/23418/steps/webkitpy-test/logs/stdio
> > FAIL: test_reference_files (webkitpy.layout_tests.port.base_unittest.PortTest) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "E:\b\chromium-win-release-tests\build\Tools\Scripts\webkitpy\layout_tests\port\base_unittest.py", line 360, in test_reference_files > self.assertEqual(port.reference_files('passes/svgreftest.svg'), [('==', '/test.checkout/LayoutTests/passes/svgreftest-expected.svg')]) > AssertionError: [('==', 'c:/test.checkout/LayoutTests/passes/svgreftest-expected.svg')] != [('==', '/test.checkout/LayoutTests/passes/svgreftest-expected.svg')] > > ----------------------------------------------------------------------
:-( i knew it. will fix ASAP.
Ryosuke Niwa
Comment 13
2012-02-03 19:52:31 PST
Fix landed in
http://trac.webkit.org/changeset/106726
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug