[Webkit-unassigned] [Bug 16743] New: Acid3 expects [object NodeIterator].nextNode() to "forward exception"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jan 5 13:58:33 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=16743
Summary: Acid3 expects [object NodeIterator].nextNode() to
"forward exception"
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P2
Component: XML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: eric at webkit.org
Test 5: FAIL (method [object NodeIterator].nextNode() didn't forward exception)
// DOM Traversal
function () {
// test 5: NodeFilters and Exceptions
var doc = getTestDocument();
var iteration = 0;
var exception = "Roses";
var test = function(node) {
iteration += 1;
switch (iteration) {
case 1, 3, 4, 6, 7, 8, 9, 12: throw exception;
case 2, 5, 10, 11: return true;
default: throw 0;
};
};
var check = function(o, method) {
var ok = false;
try {
o[method]();
} catch (e) {
if (e === exception)
ok = true;
}
assert(ok, "method " + o + "." + method + "() didn't forward
exception");
};
var i = doc.createNodeIterator(doc.documentElement, 0xFFFFFFFF, test,
true);
check(i, "nextNode"); // 1
assert(i.nextNode() == doc.documentElement, "i.nextNode() didn't return
the right node"); // 2
check(i, "previousNode"); // 3
var w = document.createTreeWalker(doc.documentElement, 0xFFFFFFFF, test,
true);
check(w, "nextNode"); // 4
assert(w.nextNode() == doc.documentElement.firstChild, "w.nextNode()
didn't return the right node"); // 5
check(w, "previousNode"); // 6
check(w, "firstChild"); // 7
check(w, "lastChild"); // 8
check(w, "nextSibling"); // 9
assert(w.previousSibling() == null, "w.previousSibling() didn't return
the right node"); // 10
assert(w.nextSibling() == null, "w.nextSibling() didn't return the right
node"); // 11
check(w, "previousSibling"); // 12
return 1;
},
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list