Chromium Code Reviews| Index: LayoutTests/editing/selection/contains-node-cleared-document.html |
| diff --git a/LayoutTests/editing/selection/contains-node-crash.html b/LayoutTests/editing/selection/contains-node-cleared-document.html |
| similarity index 60% |
| copy from LayoutTests/editing/selection/contains-node-crash.html |
| copy to LayoutTests/editing/selection/contains-node-cleared-document.html |
| index ef0c04e93af34a058a72216d71b5fe1b4055acda..4638da14ee60ff2d34f0538c2f77df245bf311e2 100644 |
| --- a/LayoutTests/editing/selection/contains-node-crash.html |
| +++ b/LayoutTests/editing/selection/contains-node-cleared-document.html |
| @@ -1,5 +1,4 @@ |
| -<!DOCTYPE html> |
| -<html style="display: inline-table"> |
| +<html> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| @@ -9,10 +8,13 @@ window.onload = function() { |
| selection.selectAllChildren(document); |
| selection.collapseToEnd(); |
| var element = document.activeElement; |
| + var parent = element.parentNode; |
|
Yuta Kitamura
2014/03/27 01:21:12
|parent| is not used; is this necessary?
Mads Ager (chromium)
2014/03/27 13:52:44
Yes, that is actually what is causing the issue he
|
| document.open(); |
| - document.write("Pass. Test didn't crash."); |
| + if (selection.containsNode(element,true)) |
|
Yuta Kitamura
2014/03/27 01:21:12
nit: space after comma
Mads Ager (chromium)
2014/03/27 13:52:44
Thanks, done.
|
| + document.write("FAIL: selection.containsNode should return false"); |
| + else |
| + document.write("PASS"); |
| document.close(); |
| - selection.containsNode(element,true); |
| } |
| </script> |
| </html> |