Skip to content

Commit

Permalink
Add 'domparsing' tests from WPT
Browse files Browse the repository at this point in the history
These will help to exercise HTML/XML parsing and serialization.

Change-Id: Ia8b4e3ad561d02d71b0805c5f9d35430f0c7740a
  • Loading branch information
cscott committed Jul 3, 2021
1 parent 9940fc3 commit 5272a63
Show file tree
Hide file tree
Showing 179 changed files with 1,514 additions and 369 deletions.
15 changes: 15 additions & 0 deletions tests/Harness/WPTTestHarness.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,21 @@ protected function wptAssertUnreached( string $description = '' ) : void {
// assert_implements is unused
// assert_implements_optional is unused

// This function is defined in DOMParser-parseFromString-html.html

/**
* @param mixed $actual
* @param array $expected
*/
public function wptAssertNode( $actual, array $expected ) : void {
Assert::assertInstanceOf( $expected['type'], $actual );
if ( ( $expected['id'] ?? null ) !== null ) {
Assert::assertEquals(
$expected['id'], $actual->id, $expected['idMessage']
);
}
}

/**
* @param mixed $val
* @return string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Collections;
use Wikimedia\Dodo\Attr;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/collections/domstringmap-supported-property-names.html.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Collections;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/collections/HTMLCollection-as-prototype.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Collections/HTMLCollectionDeleteTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Collections;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/collections/HTMLCollection-delete.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Collections/HTMLCollectionEmptyNameTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Collections;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/collections/HTMLCollection-empty-name.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Collections/HTMLCollectionIteratorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Collections;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Collections/HTMLCollectionOwnPropsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Collections;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/collections/HTMLCollection-own-props.html.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Collections;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Lists;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Lists/DOMTokenListIterableTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Lists;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/lists/DOMTokenList-Iterable.html.
class DOMTokenListIterableTest extends WPTTestHarness
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Lists/DOMTokenListStringifierTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Lists;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Lists/DOMTokenListValueTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Lists;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/lists/DOMTokenList-value.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/AppendOnDocumentTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataAppendChildTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataAppendDataTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataDataTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataDeleteDataTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataInsertDataTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataRemoveTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Comment;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataReplaceDataTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataSubstringDataTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/CharacterDataSurrogatesTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\Text;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/ChildNodeAfterTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Comment;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/ChildNodeBeforeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Comment;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/ChildNodeReplaceWithTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Comment;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\DocumentType;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/DOMImplementation-createDocumentType.html.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\HTMLHtmlElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/DOMImplementation-createHTMLDocument-with-saved-implementation.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DOMImplementationHasFeatureTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/DOMImplementation-hasFeature.html.
class DOMImplementationHasFeatureTest extends WPTTestHarness
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentAdoptNodeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\DocumentType;
Expand Down
4 changes: 2 additions & 2 deletions tests/WPT/Dom/Nodes/DocumentConstructorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Document;
use Wikimedia\IDLeDOM\XMLDocument;
Expand Down Expand Up @@ -48,7 +48,7 @@ public function testDocumentConstructor()
$this->assertTest(function () {
$doc = new Document();
$a = $doc->createElementNS('http://www.w3.org/1999/xhtml', 'a');
$this->wptAssertEquals($a->constructor, HTMLAnchorElement);
$this->wptAssertEquals($a->constructor, HTMLAnchorElement::class);
// In UTF-8: 0xC3 0xA4
$a->href = "http://example.org/?ä";
$this->wptAssertEquals($a->href, 'http://example.org/?%C3%A4');
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentCreateAttributeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentCreateCDATASectionTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Document-createCDATASection.html.
class DocumentCreateCDATASectionTest extends WPTTestHarness
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentCreateCommentTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\CharacterData;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentCreateElementNamespaceTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\DOMParser;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentCreateEventHttpsTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Text;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Document-createEvent.https.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentCreateTextNodeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Text;
use Wikimedia\Dodo\CharacterData;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentCreateTreeWalkerTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Document-createTreeWalker.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentDoctypeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Document;
use Wikimedia\Dodo\Element;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentFragmentConstructorTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\DocumentFragment;
use Wikimedia\Dodo\Document;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentFragmentGetElementByIdTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\DocumentFragment;
use Wikimedia\Dodo\Element;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\DocumentFragment;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentGetElementByIdTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentGetElementsByClassNameTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Document-getElementsByClassName.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentGetElementsByTagNameNSTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentImplementationTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\DOMImplementation;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Document-implementation.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentImportNodeTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Attr;
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentTypeLiteralTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\DocumentType;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/DocumentType-literal.html.
Expand Down
2 changes: 1 addition & 1 deletion tests/WPT/Dom/Nodes/DocumentTypeRemoveTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Node;
use Wikimedia\Dodo\Comment;
use Wikimedia\Dodo\DocumentType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Element-childElementCount-dynamic-add.html.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Element-childElementCount-dynamic-remove.html.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Wikimedia\Dodo\Tests\WPT\Dom;
namespace Wikimedia\Dodo\Tests\WPT\Dom\Nodes;
use Wikimedia\Dodo\Element;
use Wikimedia\Dodo\Tests\Harness\WPTTestHarness;
// @see vendor/web-platform-tests/wpt/dom/nodes/Element-childElementCount-nochild.html.
Expand Down
Loading

0 comments on commit 5272a63

Please sign in to comment.