-
Notifications
You must be signed in to change notification settings - Fork 47
Conversation
@cached_property | ||
def css_flag_nodes(self): | ||
"""List of ElementTree Elements corresponding to nodes representing a | ||
to a flag <meta>""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"a to a"
9f869db
to
d44082c
Compare
Current coverage is 83.29% (diff: 90.30%)@@ master #90 diff @@
==========================================
Files 22 24 +2
Lines 1668 1886 +218
Methods 0 0
Messages 0 0
Branches 300 324 +24
==========================================
+ Hits 1372 1571 +199
- Misses 237 248 +11
- Partials 59 67 +8
|
https://gist.github.com/gsnedders/56386d08ceed90b871cfa2ed16361296 is the current diff in manifests. reftests are currently expected to be pretty different because we use very different logic to find the nodes of the graph which represent tests. |
<head> | ||
<link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> | ||
</head> | ||
<body/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: don't use />
syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was so this can run as both test.html and test.xht?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<body/>
doesn't quite work in HTML
So the things in old but not new manifest:
These all use relative URLs to testharness.js
These all use absolute URLs to testharness.js on w3ctest.org
Caused by w3c/csswg-test#1118 as the test doesn't make sense currently, no diff with that PR applied
These all contain the
We're currently picking these up as visual instead of manual; w3c/csswg-test#1119 fixes this
When it comes to XML, we don't support anything but UTF-8, UTF-16, ISO-8859-1, and ASCII. That test is Shift-JIS. So, that only leaves us to work out whether we want to handle relative paths to The ones in new but not old are mostly tests which miss |
So something is wrong somewhere, because we end up with |
bb70a03
to
38f209b
Compare
That's now #108 |
38f209b
to
17a0c06
Compare
OK, so the diff, ignoring things that are definitely just missing from what build.py/w3ctestlib choose to build…
These all have no link to any spec.
These are support files and not actual tests.
These are all cycles and hence don't get considered as tests. (These are likely flawed anyway…)
These are referenced by other tests as references. The first by
Support files.
I have no idea why this isn't getting built by w3ctestlib.
html5lib/lxml cannot parse
I have no idea why these aren't getting built by w3ctestlib.
support files
This has no link to any spec. |
The files picked up as visual in web-platform-tests after web-platform-tests/wpt#3714 are:
|
4403e37
to
49b4738
Compare
49b4738
to
3d78f9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with comments fixed.
return rv | ||
|
||
@cached_property | ||
def content_is_css_visual(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider limiting this to css/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work in the short-term when we want it to work on csswg-test. Or are we just not caring about that any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it's fine either way... We'll rename them all after the merge anyway :)
3d78f9b
to
f97da69
Compare
Will merge after #125. No point in reviewing till after the rebase, because that's gonna be messy, and I won't do that till after it lands because it will end up with all the conflicts. |
c673be5
to
ef6d904
Compare
Reviewed 2 of 4 files at r5, 1 of 5 files at r6, 2 of 2 files at r7, 1 of 2 files at r9, 2 of 2 files at r10. manifest/sourcefile.py, line 352 at r1 (raw file): Previously, gsnedders (Geoffrey Sneddon) wrote…
Are there actually manual tests with manifest/sourcefile.py, line 42 at r10 (raw file):
I think it might be clearer to write manifest/sourcefile.py, line 415 at r10 (raw file):
It seems like you probably actually want to cache manifest_items() or cache the type when computing the manifest items, depending on how this is used.d manifest/XMLParser.py, line 1 at r10 (raw file):
This file could use some documentation on why it exists. It sort of seems plausible that it works, but I didn't read too closely. Does it have a noticeable performance impact? Comments from Reviewable |
Review status: all files reviewed at latest revision, 8 unresolved discussions. manifest/sourcefile.py, line 303 at r1 (raw file): Previously, Ms2ger wrote…
Done. manifest/sourcefile.py, line 352 at r1 (raw file): Previously, jgraham wrote…
Does this actually matter much? Almost the entire cost is hit when we run the first We definitely have manual tests in wpt which use manifest/XMLParser.py, line 1 at r10 (raw file): Previously, jgraham wrote…
Its performance is comparable to non-extension-module xml.etree.ElementTree (i.e., not xml.etree.cElementTree), except in the XHTML case we take a perf hit because of the size of the XHTML DTD (we could in theory not include it, and reparse the file with it on a parse error, but I doubt it's worth it?). Comments from Reviewable |
manifest/sourcefile.py, line 415 at r10 (raw file): Previously, jgraham wrote…
It's only used by the lint currently, so we in principle don't actually care about the items. Comments from Reviewable |
manifest/XMLParser.py, line 1 at r10 (raw file): Previously, gsnedders (Geoffrey Sneddon) wrote…
To give a rough idea: On Py2.7.12, with the upstream XMLParser, on w-p-t + csswg-test:
And with this:
Obviously, with hashes we shouldn't be reparsing everything that often anyway. Comments from Reviewable |
Review status: 6 of 8 files reviewed at latest revision, 8 unresolved discussions. manifest/sourcefile.py, line 42 at r10 (raw file): Previously, jgraham wrote…
We can do whatever here. It doesn't really matter, IMO. Comments from Reviewable |
b580e62
to
8b6d2a6
Compare
OK Reviewed 2 of 4 files at r5, 1 of 5 files at r6, 1 of 2 files at r7, 1 of 2 files at r10, 3 of 3 files at r11. Comments from Reviewable |
I don't see a reason to keep blocking this; if there's bugs left, we'll catch them at some point. |
* Respect multiple headers with the same name in .headers files. Fixes #90.
This is mostly legacy. We may well want to add lints to avoid this spreading.
Note the presence of the font flag as making a test manual isn't currently needed for Servo, because they install all the possibly needed fonts, so tests with that can be run in an automated manner. However, in general we only require Ahem to be installed presently.
To-do:
content_is_css_visual
in wptThis change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)