Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
rdf.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Dec 2012 at 21:35 UTC
Updated:
29 Jul 2014 at 21:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
scor commentedHere is a first patch which replaces all xpath expressions with proper RDF triple checks. It relies on #1866858: Test RDFa by parsing RDFa (add the easyrdf library) and #1848464: Make RDFa markup upward compatible with RDFa 1.1.
Edit: oops, messed up the extensions, the second one is for review and was not supposed to go for testing (should have been .txt).
Comment #3
scor commentedcan't reproduce the locale.module test fail on localhost, so I'm assuming it's a random testbot failure. re-uploading patches with better filenames (no code changes).
Comment #5
scor commentedtestbot is happy now... back to NR
Comment #6
Anonymous (not verified) commentedMethod name should start with a lowercase letter.
Other than that, I think that this is a huge improvement. If you can make that small change, I'll RTBC today :)
Comment #7
scor commentedGood catch, Lin. Luckily we no longer need that method since @njh was kind enough to add this feature in easyrdf for us. Here is the updated patch to use the new feature of the hasProperty() method in our tests.
Comment #8
Anonymous (not verified) commentedOnce #1866858: Test RDFa by parsing RDFa (add the easyrdf library) and #1848464: Make RDFa markup upward compatible with RDFa 1.1 are in, 1867096-RdfaMarkupTest-7__for-review.txt can be committed.
This is a huge improvement over the XPath based tests because it actually checks how the RDFa is interpreted by a parser.
Comment #9
webchickMarking this postponed those issues for now. I got very confused why two issues were trying to add the same 3rd party library. :D
Comment #10
scor commentedwell, this issue depends on that other issue (#1866858: Test RDFa by parsing RDFa (add the easyrdf library)) to have the library added like it says in the OP. the patch filenames should be clear: the '__for_testing' includes the library (packaged here for convenience for the testbot), and the patch to review is the '__for_review' and it does not include the library, it's that patch that should be committed once the library has been added (from the other issue).
Note that there will be more patches like this one relying on this library (wherever we test RDFa output using XPath).
Comment #11
Anonymous (not verified) commentedAs I explained to Moshe, test issues against RDF will hold up JSON-LD. We're at the point in JSON-LD development where we need to start bringing in the RDF parts of it, but we can't do major overhauls of the RDF module if we aren't sure that our tests are checking the right thing.
I'm attaching the patch which should be committed and moving back to RTBC. Note that it depends on the issues listed in the issue summary (which are also listed in my comment in #8).
Comment #12
Anonymous (not verified) commentedAh, nevermind, I see webchick just postponed on those issues, not indefinitely. I'll move back to postponed, but I hope it can be committed today.
Comment #13
scor commentedthis patch needed a reroll after the XPath expressions changes from #1848464: Make RDFa markup upward compatible with RDFa 1.1. These XPath are removed by this patch, but they need to match nonetheless otherwise git/patch will complain when applying the patch.
Comment #14
webchick#1866858: Test RDFa by parsing RDFa (add the easyrdf library) Just got committed, unpostponing this one. :)
Comment #15
scor commentedrerolling so we can get the green
Comment #16
scor commentedgreen = back to RTBC
Comment #17
webchickCommitted and pushed to 8.x. Thanks! Sorry that fell off my radar. :(
Comment #18.0
(not verified) commentedadd dependencies