-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexternal.html
25 lines (24 loc) · 1.12 KB
/
external.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>External window for pubsub QUnit tests</title>
<style type="text/css" media="screen">
body{ font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif; }
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" src="pubsub.js"></script>
<script type="text/javascript">// <![CDATA[
jQuery(function( $ ) {
// Crockfords JSON serializer fails on arrays after they're transported from one window to another in IE8 (9? 10?).
PubSub.publishJson = function( channel, value ) {
this.publish(channel, JSON.parse(value));
};
if(opener.window.parent && typeof opener.window.parent.QUnit != 'undefined'){ opener.window.parent.QUnit.start(); }
});
// ]]></script>
</head>
<body>
This window is used by the pubsub QUnit tests. You can safely close it after running the tests.
</body>
</html>