js/xpconnect/tests/mochitest/test1_bug629331.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/tests/mochitest/test1_bug629331.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<body>
     1.5 +<iframe src="about:blank" id="ifr"></iframe>
     1.6 +<script>
     1.7 +/** Test for Bug 629331 **/
     1.8 +function finish() {
     1.9 +    parent.postMessage(JSON.stringify({fun: "finish"}), "*");
    1.10 +}
    1.11 +
    1.12 +function is(a, b, description) {
    1.13 +    parent.postMessage(JSON.stringify({ fun: "is", a: a, b: b, description: description }), "*");
    1.14 +}
    1.15 +
    1.16 +document.domain = "example.org";
    1.17 +var i = 0;
    1.18 +is(i, 0, 'i meets starting conditions');
    1.19 +document.getElementById('ifr').src = 'http://test2.example.org/tests/js/xpconnect/tests/mochitest/test2_bug629331.html';
    1.20 +</script>
    1.21 +
    1.22 +

mercurial