Index: LayoutTests/fast/css/style-scoped/changing-scoped-attribute-asan-crash.html |
diff --git a/LayoutTests/fast/css/style-scoped/changing-scoped-attribute-asan-crash.html b/LayoutTests/fast/css/style-scoped/changing-scoped-attribute-asan-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6d0e471ca122d97a90197a1603b01af3efa7f2aa |
--- /dev/null |
+++ b/LayoutTests/fast/css/style-scoped/changing-scoped-attribute-asan-crash.html |
@@ -0,0 +1,46 @@ |
+<!doctype html> |
+<html> |
+<head> |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+} |
+</script> |
+</head> |
+<body onload="onLoad()">><p id="scopingNode"><style scoped></style> |
+></p> |
+<style> |
+</style> |
+<script> |
+document.body.contentEditable = "true"; |
+ |
+function onLoad() { |
+ var style = document.getElementsByTagName("style")[0]; |
+ style.scoped = false; |
+ setTimeout("runTest()", 0); |
+} |
+ |
+function invokeEditingCommand() { |
+ if (!window.eventSender) |
+ return; |
+ for (var i = 0; i < 8; i++) |
+ eventSender.keyDown("\t", []); |
+ for (var i = 0; i < 5; i++) |
+ eventSender.keyDown("X"); |
+ for (var i = 0; i < 6; i++) |
+ eventSender.keyDown("\t", []); |
+ eventSender.keyDown("\r", []); |
+ |
+ document.body.innerHTML = 'PASS'; |
+ testRunner.notifyDone(); |
+} |
+ |
+function runTest() { |
+ document.adoptNode(scopingNode); |
+ gc(); |
+ setTimeout('invokeEditingCommand();', 0); |
+} |
+</script> |
+</body> |
+</html> |