OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 | 5 |
6 <!-- implicit level of tag --> | 6 <!-- implicit level of tag --> |
7 <h1 class="ex" data-expected="1">X</h1> | 7 <h1 class="ex" data-expected="1">X</h1> |
8 <h2 class="ex" data-expected="2">X</h2> | 8 <h2 class="ex" data-expected="2">X</h2> |
9 <h3 class="ex" data-expected="3">X</h3> | 9 <h3 class="ex" data-expected="3">X</h3> |
10 <h4 class="ex" data-expected="4">X</h4> | 10 <h4 class="ex" data-expected="4">X</h4> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 if (axElement.intValue == parseInt(el.getAttribute('data-expected'))) { | 55 if (axElement.intValue == parseInt(el.getAttribute('data-expected'))) { |
56 result.innerText += "PASS: level is " + axElement.intValue + ".\n"; | 56 result.innerText += "PASS: level is " + axElement.intValue + ".\n"; |
57 } else { | 57 } else { |
58 result.innerText += "FAIL: level is " + axElement.intValue + " for "
+ el.outerHTML + ", expected " + parseInt(el.getAttribute('data-expected')) + "
.\n"; | 58 result.innerText += "FAIL: level is " + axElement.intValue + " for "
+ el.outerHTML + ", expected " + parseInt(el.getAttribute('data-expected')) + "
.\n"; |
59 } | 59 } |
60 el.style.display = 'none'; // Hide each example after verification. | 60 el.style.display = 'none'; // Hide each example after verification. |
61 } | 61 } |
62 } | 62 } |
63 </script> | 63 </script> |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
OLD | NEW |