test1_bug629331.html 526 B

1234567891011121314151617181920
  1. <body>
  2. <iframe src="about:blank" id="ifr"></iframe>
  3. <script>
  4. /** Test for Bug 629331 **/
  5. function finish() {
  6. parent.postMessage(JSON.stringify({fun: "finish"}), "*");
  7. }
  8. function is(a, b, description) {
  9. parent.postMessage(JSON.stringify({ fun: "is", a: a, b: b, description: description }), "*");
  10. }
  11. document.domain = "example.org";
  12. var i = 0;
  13. is(i, 0, 'i meets starting conditions');
  14. document.getElementById('ifr').src = 'http://test2.example.org/tests/js/xpconnect/tests/mochitest/test2_bug629331.html';
  15. </script>