aboutsummaryrefslogtreecommitdiffstats
path: root/test/data/event
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/event')
-rw-r--r--test/data/event/onbeforeunload.html20
-rw-r--r--test/data/event/promiseReady.html2
-rw-r--r--test/data/event/syncReady.html2
3 files changed, 22 insertions, 2 deletions
diff --git a/test/data/event/onbeforeunload.html b/test/data/event/onbeforeunload.html
new file mode 100644
index 000000000..11ad1964a
--- /dev/null
+++ b/test/data/event/onbeforeunload.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html>
+ <script src="../../jquery.js"></script>
+ <script>
+ function report( event ) {
+ var payload = {
+ event: event.type
+ };
+ return parent.postMessage( JSON.stringify(payload), "*" );
+ }
+
+ jQuery( window ).on( "beforeunload", function( event ) {
+ report( event );
+ }).on( "load", function( event ) {
+ setTimeout(function() {
+ window.location.reload();
+ }, 50);
+ });
+ </script>
+</html>
diff --git a/test/data/event/promiseReady.html b/test/data/event/promiseReady.html
index d2b166f32..17b6e7f2c 100644
--- a/test/data/event/promiseReady.html
+++ b/test/data/event/promiseReady.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test case for jQuery ticket #11470</title>
-<script type="text/javascript" src="../../../dist/jquery.min.js"></script>
+<script src="../../jquery.js"></script>
<script type="text/javascript">
jQuery.when( jQuery.ready ).done(function() {
jQuery("body").append("<div>modifying DOM</div>");
diff --git a/test/data/event/syncReady.html b/test/data/event/syncReady.html
index 6c2fc0e96..e0885707e 100644
--- a/test/data/event/syncReady.html
+++ b/test/data/event/syncReady.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test case for jQuery ticket #10067</title>
-<script type="text/javascript" src="../../../dist/jquery.min.js"></script>
+<script src="../../jquery.js"></script>
</head>
<body>