Commits

Christian Krebs  committed 0a78c1d

Added cross origin test.

  • Participants
  • Parent commits bf6c58b

Comments (0)

Files changed (2)

 <h2>Tests</h2>
 <ul>
 <li><a href="./tests/add-remove-runtime/index.html">add-remove-runtime</a></li>
+<li><a href="./tests/cross-origin/index.html">cross-origin</a></li>
 <li><a href="./tests/image-viewer/index.html">image-viewer</a></li>
 <li><a href="./tests/js-highlight-performance/index.html">js-highlight-performance</a></li>
 <li><a href="./tests/key-identifier/index.html">key-identifier</a></li>

File tests/cross-origin/index.html

+<!doctype html>
+<title>Test cross origin policy</title>
+<script>
+window.onload = function()
+{
+  var x = new XMLHttpRequest();
+  x.onload = function()
+  {
+    console.log("success", this.responseText);
+  }
+  x.open("GET", "http://graph.facebook.com/fql");
+  x.send();
+};
+</script>