OLD | NEW |
1 test(function() { | 1 test(function() { |
2 var invalid = [ | 2 var invalid = [ |
3 ["A", "?>"], | 3 ["A", "?>"], |
4 ["\u00B7A", "x"], | 4 ["\u00B7A", "x"], |
5 ["\u00D7A", "x"], | 5 ["\u00D7A", "x"], |
6 ["A\u00D7", "x"], | 6 ["A\u00D7", "x"], |
7 ["\\A", "x"], | 7 ["\\A", "x"], |
8 ["\f", "x"], | 8 ["\f", "x"], |
9 [0, "x"], | 9 [0, "x"], |
10 ["0", "x"] | 10 ["0", "x"] |
(...skipping 19 matching lines...) Expand all Loading... |
30 assert_equals(pi.target, valid[i][0]); | 30 assert_equals(pi.target, valid[i][0]); |
31 assert_equals(pi.data, valid[i][1]); | 31 assert_equals(pi.data, valid[i][1]); |
32 assert_equals(pi.ownerDocument, document); | 32 assert_equals(pi.ownerDocument, document); |
33 assert_true(pi instanceof ProcessingInstruction); | 33 assert_true(pi instanceof ProcessingInstruction); |
34 assert_true(pi instanceof Node); | 34 assert_true(pi instanceof Node); |
35 }, "Should get a ProcessingInstruction for target " + | 35 }, "Should get a ProcessingInstruction for target " + |
36 format_value(valid[i][0]) + " and data " + | 36 format_value(valid[i][0]) + " and data " + |
37 format_value(valid[i][1]) + ".") | 37 format_value(valid[i][1]) + ".") |
38 } | 38 } |
39 }) | 39 }) |
OLD | NEW |