a test for CORS
[mkws-moved-to-github.git] / examples / htdocs / jasmine-cors-popup.html
diff --git a/examples/htdocs/jasmine-cors-popup.html b/examples/htdocs/jasmine-cors-popup.html
new file mode 100644 (file)
index 0000000..09b2520
--- /dev/null
@@ -0,0 +1,67 @@
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>MKWS demo: jQuery popup plugin with jasmine test framework</title>
+
+    <script type="text/javascript" src="//mkws.indexdata.com/mkws-complete.js"></script>
+    <link rel="stylesheet" type="text/css" href="//mkws.indexdata.com/mkws.css" />
+
+    <script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
+    <link rel="stylesheet" type="text/css" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
+
+    <link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-1.3.1/jasmine_favicon.png">
+    <link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-1.3.1/jasmine.css">
+    <script type="text/javascript" src="jasmine/lib/jasmine-1.3.1/jasmine.js"></script>
+    <script type="text/javascript" src="jasmine/lib/jasmine-1.3.1/jasmine-html.js"></script>
+
+    <script type="text/javascript" src="test/spec/true.spec.js"></script>
+    <script type="text/javascript" src="test/spec/mkws-config.js"></script>
+    <script type="text/javascript" src="test/spec/mkws-pazpar2.js"></script>
+
+    <script type="text/javascript" src="test/js/mkws-jasmine-run.js"></script>
+    <script type="text/javascript"> mkws_jasmine_init(500); </script>
+
+    <!-- jquery null test 
+    <script type="text/javascript">$ = undefined;</script>
+       -->
+
+    <style type="text/css">
+      body > div > form > input.ui-state-default { background: none; }
+    </style>
+  </head>
+
+  <body>
+    <script type="text/javascript">
+
+    // using a local service proxy !!!
+    var mkws_config = {
+      perpage_default: 10
+    };
+
+    var jasmine_config = {
+      search_query: "netbsd",
+      expected_hits: 10,
+      // active_clients: 17,
+      check_motd: false,
+      show_record_url: true
+    };
+
+    jQuery.pazpar2({
+        "layout": "popup",               /* "table" [default], "div", "popup" */
+        "width": 990,                    /* popup width, should be at least 800 */
+        "height": 760                    /* popup height, should be at least 600 */
+    });
+    </script>
+
+    <pre>
+An embryonic MasterKey Widget Set
+=================================
+
+This directory contains an embryonic MasterKey Widget Set, based
+initially on "jsdemo" though now far removed from those beginnnings.
+[...]
+    </pre>
+
+  </body>
+</html>
+