Title: [171884] branches/safari-537.78-branch/LayoutTests

Diff

Copied: branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-assertion-expected.txt (from rev 169475, trunk/LayoutTests/fast/events/beforeload-assertion-expected.txt) (0 => 171884)


--- branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-assertion-expected.txt	                        (rev 0)
+++ branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-assertion-expected.txt	2014-07-31 20:22:43 UTC (rev 171884)
@@ -0,0 +1,2 @@
+
+PASS if no assertion failure.

Copied: branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-assertion.html (from rev 169475, trunk/LayoutTests/fast/events/beforeload-assertion.html) (0 => 171884)


--- branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-assertion.html	                        (rev 0)
+++ branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-assertion.html	2014-07-31 20:22:43 UTC (rev 171884)
@@ -0,0 +1,12 @@
+<div id="d1"></div>
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+document.addEventListener('beforeload', function(event) {
+    d1.appendChild(document.createElement('button'));
+    d1.offsetLeft;
+    d1.remove();
+}, true);
+</script>
+<embed src=""
+<p>PASS if no assertion failure.</p>
\ No newline at end of file

Copied: branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-iframe-crash-expected.txt (from rev 169475, trunk/LayoutTests/fast/events/beforeload-iframe-crash-expected.txt) (0 => 171884)


--- branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-iframe-crash-expected.txt	                        (rev 0)
+++ branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-iframe-crash-expected.txt	2014-07-31 20:22:43 UTC (rev 171884)
@@ -0,0 +1 @@
+PASS if not crashed.

Copied: branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-iframe-crash.html (from rev 169475, trunk/LayoutTests/fast/events/beforeload-iframe-crash.html) (0 => 171884)


--- branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-iframe-crash.html	                        (rev 0)
+++ branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-iframe-crash.html	2014-07-31 20:22:43 UTC (rev 171884)
@@ -0,0 +1,19 @@
+<iframe></iframe><object _onbeforeload_="crash()">
+<script>
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+}
+
+function crash() {
+    document.getElementsByTagName("iframe")[0].contentWindow.scrollX;
+    document.open();
+}
+
+document.body.offsetLeft;
+setTimeout(function() {
+    document.close();
+    document.body.innerHTML = 'PASS if not crashed.';
+    testRunner.notifyDone();
+}, 1);
+</script>
\ No newline at end of file

Copied: branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-input-time-crash-expected.txt (from rev 169475, trunk/LayoutTests/fast/events/beforeload-input-time-crash-expected.txt) (0 => 171884)


--- branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-input-time-crash-expected.txt	                        (rev 0)
+++ branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-input-time-crash-expected.txt	2014-07-31 20:22:43 UTC (rev 171884)
@@ -0,0 +1 @@
+PASS if not crashed.

Copied: branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-input-time-crash.html (from rev 169475, trunk/LayoutTests/fast/events/beforeload-input-time-crash.html) (0 => 171884)


--- branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-input-time-crash.html	                        (rev 0)
+++ branches/safari-537.78-branch/LayoutTests/fast/events/beforeload-input-time-crash.html	2014-07-31 20:22:43 UTC (rev 171884)
@@ -0,0 +1,18 @@
+<input id="t1" type="time">
+<script>
+var time1 = document.getElementById('t1');
+document.addEventListener('beforeload', function(event) {
+    time1.value = time1.value ? '' : '23:59';
+}, true);
+
+if (window.testRunner) {
+    testRunner.dumpAsText();
+    testRunner.waitUntilDone();
+}
+setTimeout(function() {
+    document.body.innerHTML = 'PASS if not crashed.';
+    testRunner.notifyDone();
+}, 100);
+time1.focus();
+</script>
+<embed src=""
\ No newline at end of file

Copied: branches/safari-537.78-branch/LayoutTests/resources/plugin.js (from rev 169475, trunk/LayoutTests/resources/plugin.js) (0 => 171884)


--- branches/safari-537.78-branch/LayoutTests/resources/plugin.js	                        (rev 0)
+++ branches/safari-537.78-branch/LayoutTests/resources/plugin.js	2014-07-31 20:22:43 UTC (rev 171884)
@@ -0,0 +1,21 @@
+// Wait for the load event, run post layout tasks, run the specified function,
+// and notify the test runner that the test is done.
+
+var NotifyDone = true;
+var DoNotNotifyDone = false;
+
+function runAfterPluginLoad(func, notifyDone, node) {
+    if (window.testRunner)
+        testRunner.waitUntilDone();
+
+    window.addEventListener('load', function() {
+        if (window.internals)
+            internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(node);
+
+        if (func)
+            func();
+
+        if (notifyDone && window.testRunner)
+            testRunner.notifyDone();
+    }, false);
+}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to