blob: 4cc3b5ed49f142e690614feb4f812d0a216b6669 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Test for a specific problem with previousSibling that failed in older versions of WebKit.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS walker.firstChild(); walker.currentNode.id is 'A1'
PASS walker.nextNode(); walker.currentNode.id is 'C1'
PASS walker.nextNode(); walker.currentNode.id is 'C2'
PASS walker.nextNode(); walker.currentNode.id is 'D1'
PASS walker.nextNode(); walker.currentNode.id is 'D2'
PASS walker.nextNode(); walker.currentNode.id is 'B2'
PASS walker.previousSibling(); walker.currentNode.id is 'C2'
PASS successfullyParsed is true
TEST COMPLETE
|