Chromium Code Reviews| Index: LayoutTests/editing/selection/selection-invalid-offset.html |
| diff --git a/LayoutTests/editing/selection/selection-invalid-offset.html b/LayoutTests/editing/selection/selection-invalid-offset.html |
| index 8393b16e3187df2c741c47b7e2785a8e0ed823ab..5e5a3f0b64ced2cc898503979d1150e1ffd4bc87 100644 |
| --- a/LayoutTests/editing/selection/selection-invalid-offset.html |
| +++ b/LayoutTests/editing/selection/selection-invalid-offset.html |
| @@ -1,5 +1,5 @@ |
| <body> |
| -You should see six OKs below (and not hang): <br> |
| +You should see 7 OKs below (and not hang): <br> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| @@ -30,8 +30,10 @@ selection.getRangeAt(10000); |
| } catch (e) {document.write(((e.code==DOMException.INDEX_SIZE_ERR) ? "OK" : "FAIL")+"<br>"); } |
| // these should throw as well but don't at the moment. Just checking they don't crash. |
|
Yuta Kitamura
2014/06/05 09:09:28
The location of this comment is inappropriate.
yoichio
2014/06/06 07:54:49
Done.
|
| +try { |
| selection.collapse(body, 10000); |
| +} catch (e) {document.write(((e.code==DOMException.INDEX_SIZE_ERR) ? "OK" : "FAIL")+"<br>"); } |
|
Yuta Kitamura
2014/06/05 09:09:28
optional: I know it's not your fault, but the form
yoichio
2014/06/06 07:54:49
Done.
|
| + |
| selection.setBaseAndExtent(body, 1000, body, 0); |
| selection.setBaseAndExtent(body, 0, body, 10000); |
| -selection.collapse(body, 10000); |
| </script> |