OLD | NEW |
1 Test the extraction of the text surrounding an element. | 1 Test the extraction of the text surrounding an element. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 0, 100) is "12345 6789 12345 6789" | 6 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 0, 100) is "12345 6789 12345 6789" |
7 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 5, 6) is "89 123" | 7 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 5, 6) is "89 123" |
8 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 5, 0) is "" | 8 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 5, 0) is "" |
9 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 5, 1) is "1" | 9 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 5, 1) is "1" |
10 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 6, 2) is "12" | 10 PASS surroundingText('<button>.</button>12345<p id="here">6789 12345</p>6789<but
ton>.</button>', 6, 2) is "12" |
11 PASS surroundingText('<select>.</select><div>57th Street and Lake Shore Drive</d
iv> <span>Chicago</span> <span id="here">IL</span> <span>60637</span><select>.</
select>', 0, 100) is "57th Street and Lake Shore Drive Chicago IL 60637" | 11 PASS surroundingText('<select>.</select><div>57th Street and Lake Shore Drive</d
iv> <span>Chicago</span> <span id="here">IL</span> <span>60637</span><select>.</
select>', 0, 100) is "57th Street and Lake Shore Drive Chicago IL 60637" |
12 PASS surroundingText('<fieldset>.</fieldset>12345<button>abc</button><p>6789<br
id="here"/>12345</p>6789<textarea>abc</textarea>0123<fieldset>.</fieldset>', 0,
100) is "6789 12345 6789" | 12 PASS surroundingText('<fieldset>.</fieldset>12345<button>abc</button><p>6789<br
id="here"/>12345</p>6789<textarea>abc</textarea>0123<fieldset>.</fieldset>', 0,
100) is "6789 12345 6789" |
13 PASS surroundingText('<button>.</button><div id="here">This is <!-- comment --!>
a test <' + 'script language="javascript"><' + '/script>example<button>.</button
>', 0, 100) is "This is a test example" | 13 PASS surroundingText('<button>.</button><div id="here">This is <!-- comment --!>
a test <' + 'script language="javascript"><' + '/script>example<button>.</button
>', 0, 100) is "This is a test example" |
14 PASS surroundingText('<button>.</button><div id="here">0123456789012345678901234
56789</div><button>.</button>', 15, 12) is "901234567890" | 14 PASS surroundingText('<button>.</button><div id="here">0123456789012345678901234
56789</div><button>.</button>', 15, 12) is "901234567890" |
15 PASS surroundingText('<option>.</option>12345<button id="here">test</button><opt
ion>.</option>', 0, 100) is "" | 15 PASS surroundingText('<option>.</option>12345<button id="here">test</button><opt
ion>.</option>', 1, 100) is "" |
16 PASS surroundingText('<option>.</option>12345<button>te<span id="here">st</span>
</button><option>.</option>', 0, 100) is "" | 16 PASS surroundingText('<option>.</option>12345<button>te<span id="here">st</span>
</button><option>.</option>', 1, 100) is "" |
17 PASS surroundingText('<p id="here">.</p>', 0, 2) is "." | 17 PASS surroundingText('<p id="here">.</p>', 0, 2) is "." |
18 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
19 | 19 |
20 TEST COMPLETE | 20 TEST COMPLETE |
21 | 21 |
OLD | NEW |