summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/printing
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/LayoutTests/printing')
-rw-r--r--third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash-expected.html5
-rw-r--r--third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash.html19
2 files changed, 24 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash-expected.html b/third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash-expected.html
new file mode 100644
index 0000000..0e3344e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash-expected.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<dialog
+ <form>
+ <input src="data:image/gif;base64,R0lGODdhAgACAIABAAAAAP///ywAAAAAAgACAAACA0QCBQA7" type="image"/>
+</dialog>
diff --git a/third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash.html b/third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash.html
new file mode 100644
index 0000000..b65a8d8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/finish-loading-while-printing-crash.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<dialog
+ <form>
+ <!-- Any valid image encoded to data URL will do. -->
+ <!-- The important thing is that some valid image is loaded while -->
+ <!-- layout caused by print. -->
+ <!-- This causes test_runner to do WebTestProxyBase::checkDone. -->
+ <!-- If test_runner judges that the test is finished, CaptureDump -->
+ <!-- will be invoked and updateLayout will be invoked. -->
+ <!-- Since layout is running, the updateLayout causes crash. -->
+ <input src="data:image/gif;base64,R0lGODdhAgACAIABAAAAAP///ywAAAAAAgACAAACA0QCBQA7" type="image"/>
+</dialog>
+<!-- test for issue 539689: should not capture dump while printing. -->
+<!-- PASS if no crash occurs. -->
+<script>
+if (window.testRunner)
+ testRunner.setPrinting();
+print();
+</script>