Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some tests in rdf.test are not very robust and do not contain a full xpath expression.
$this->assertRaw('property="dc:title"');
It seems we're also missing a test for the relation between a comment and its parent node and parent comment. Same for the node title in full node mode (drupal_add_html_head($element, 'rdf_node_title');
)
Comment | File | Size | Author |
---|---|---|---|
#12 | rdf_improve-test_691692-8.patch | 6.33 KB | cwgordon7 |
#10 | rdf_improve-test_691692-6.patch | 6.33 KB | Stefan Freudenberg |
#9 | rdf_improve-test_691692-5.patch | 6.35 KB | Stefan Freudenberg |
#7 | rdf_improve-test_691692-4.patch | 6.36 KB | Stefan Freudenberg |
#5 | rdf_improve-test_691692-3.patch | 6.35 KB | Stefan Freudenberg |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedUnless you're already working on this, I can work on this tomorrow.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThis patch replaces all the assertRaw statements with XPath checks. It also checks the title in full node view by checking the content attribute of the meta tag.
I am going to break the test for the relation between a comment and its parent node and parent comment into a separate issue because that test will fail until some other patches are committed.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commented#694314: RDF tests for parent/comment relationship has been created.
Comment #4
scor CreditAttribution: scor commented#694314: RDF tests for parent/comment relationship now duplicate since we now have proper RDFa markup for comment body. Tests can be merged with this issue.
Comment #5
Stefan Freudenberg CreditAttribution: Stefan Freudenberg commentedAdded tests for the relation between a comment and its parent node and parent comment and removed trailing whitespace.
Comment #6
scor CreditAttribution: scor commentedLet's bundle this first hunk into the new function you create afterwards.
Powered by Dreditor.
Comment #7
Stefan Freudenberg CreditAttribution: Stefan Freudenberg commentedRenamed function to cover both tests and added custom messages.
Comment #8
Stefan Freudenberg CreditAttribution: Stefan Freudenberg commentedForgot to set the status.
Comment #9
Stefan Freudenberg CreditAttribution: Stefan Freudenberg commentedRemoved a trailing whitespace.
Comment #10
Stefan Freudenberg CreditAttribution: Stefan Freudenberg commentedFixed a typo and adjusted test messages.
Comment #11
scor CreditAttribution: scor commentedwe're good to go.
Comment #12
cwgordon7 CreditAttribution: cwgordon7 commentedFixed two small whitespace issues. Should still be rtbc.
Comment #13
webchickCommitted to HEAD. Thanks!