You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/DOMHelpers.test
+6-6
Original file line number
Diff line number
Diff line change
@@ -66,15 +66,15 @@ EOT;
66
66
$list = $root->getElementsByTagName('c');
67
67
$c1 = $list->item(0);
68
68
$path = get_dom_node_xpath($c1);
69
-
$this->assertEqual($path, "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'c'][1]", 'get_dom_node_xpath: Path to grand child element with different type than the first two.');
69
+
$this->assertEqual($path, "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'c'][1]", 'get_dom_node_xpath: Path to grandchild element with different type than the first two.');
70
70
$c2 = $list->item(1);
71
71
$path = get_dom_node_xpath($c2);
72
72
$this->assertEqual($path, "/*[local-name() = 'root'][1]/*[local-name() = 'c'][1]", 'get_dom_node_xpath: Path to child element with different type than the first two.');
73
73
$list = $root->getElementsByTagName('b');
74
74
$b1 = $list->item(0);
75
-
$this->assertEqual(get_dom_node_xpath($b1), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'b'][1]", 'get_dom_node_xpath: Path to grand child element with third type.');
75
+
$this->assertEqual(get_dom_node_xpath($b1), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'b'][1]", 'get_dom_node_xpath: Path to grandchild element with third type.');
76
76
$b2 = $list->item(1);
77
-
$this->assertEqual(get_dom_node_xpath($b2), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][2]/*[local-name() = 'b'][1]", 'get_dom_node_xpath: Path to grand child element with third type but different parent.');
77
+
$this->assertEqual(get_dom_node_xpath($b2), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][2]/*[local-name() = 'b'][1]", 'get_dom_node_xpath: Path to grandchild element with third type but different parent.');
78
78
}
79
79
80
80
public function testGetDomNodeXPathNamespaces() {
@@ -106,15 +106,15 @@ EOT;
106
106
$list = $root->getElementsByTagName('c');
107
107
$c1 = $list->item(0);
108
108
$path = get_dom_node_xpath($c1);
109
-
$this->assertEqual($path, "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'c'][1]", 'get_dom_node_xpath Namespaces: Path to grand child element with different type than the first two.');
109
+
$this->assertEqual($path, "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'c'][1]", 'get_dom_node_xpath Namespaces: Path to grandchild element with different type than the first two.');
110
110
$c2 = $list->item(1);
111
111
$path = get_dom_node_xpath($c2);
112
112
$this->assertEqual($path, "/*[local-name() = 'root'][1]/*[local-name() = 'c'][1]", 'get_dom_node_xpath Namespaces: Path to child element with different type than the first two.');
113
113
$list = $root->getElementsByTagName('b');
114
114
$b1 = $list->item(0);
115
-
$this->assertEqual(get_dom_node_xpath($b1), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'b'][1]", 'get_dom_node_xpath Namespaces: Path to grand child element with third type.');
115
+
$this->assertEqual(get_dom_node_xpath($b1), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][1]/*[local-name() = 'b'][1]", 'get_dom_node_xpath Namespaces: Path to grandchild element with third type.');
116
116
$b2 = $list->item(1);
117
-
$this->assertEqual(get_dom_node_xpath($b2), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][2]/*[local-name() = 'b'][1]", 'get_dom_node_xpath Namespaces: Path to grand child element with third type but different parent.');
117
+
$this->assertEqual(get_dom_node_xpath($b2), "/*[local-name() = 'root'][1]/*[local-name() = 'a'][2]/*[local-name() = 'b'][1]", 'get_dom_node_xpath Namespaces: Path to grandchild element with third type but different parent.');
0 commit comments