Index: LayoutTests/fast/parser/html-document-parser-suspended-0.html |
diff --git a/LayoutTests/fast/parser/html-document-parser-suspended-0.html b/LayoutTests/fast/parser/html-document-parser-suspended-0.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3194bd9c90526a105b6fe7594132f6bfd41fd331 |
--- /dev/null |
+++ b/LayoutTests/fast/parser/html-document-parser-suspended-0.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<head> |
+<meta charset="utf-8"> |
+</head> |
+<body> |
+<noscript><p>Javascript must be enabled.</p></noscript> |
+<p>Testing a crash.</p> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+setTimeout(function (){ |
+ // alert() is practically a no-op while running blink tests, so testRunner.sleep |
+ // will be the call that blocks scripts and sets defersLoading. |
+ alert("When you close this alert, the renderer should not assert and crash"); |
+ if (window.testRunner) |
+ testRunner.sleep(500); |
+ else |
+ location.reload(); |
+}, 0); |
+</script> |
+<p><iframe src="data:text/html,%3Ch1%3EHi%3C%2Fh1%3E%3Ciframe%20src%3D%22data%3Atext%2Fhtml%2C%3Ch1%3EHi%22%3E%3C%2Fiframe%3E"></iframe></p> |
kouhei (in TOK)
2014/11/19 07:56:10
Nit: Would you use data:text/html;charset=utf-8, a
|
+ |
+</body> |
+</html> |