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) commentedUnless you're already working on this, I can work on this tomorrow.
Comment #2
Anonymous (not verified) 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) commented#694314: RDF tests for parent/comment relationship has been created.
Comment #4
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 commentedAdded tests for the relation between a comment and its parent node and parent comment and removed trailing whitespace.
Comment #6
scor commentedLet's bundle this first hunk into the new function you create afterwards.
Powered by Dreditor.
Comment #7
stefan freudenberg commentedRenamed function to cover both tests and added custom messages.
Comment #8
stefan freudenberg commentedForgot to set the status.
Comment #9
stefan freudenberg commentedRemoved a trailing whitespace.
Comment #10
stefan freudenberg commentedFixed a typo and adjusted test messages.
Comment #11
scor commentedwe're good to go.
Comment #12
cwgordon7 commentedFixed two small whitespace issues. Should still be rtbc.
Comment #13
webchickCommitted to HEAD. Thanks!