Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Unified Diff: LayoutTests/fast/parser/html-document-parser-suspended-0.html

Issue 625583002: Properly suspend HTMLDocumentParser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: better way to call m_parserScheduler->resume Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698