tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / regex / script-tests / cross-frame-callable.js
1 function doTest(childRegExp)
2 {
3     re = childRegExp;
4     shouldThrow("re('a')");
5     shouldBe("re.exec('a')", "['a']");
6 }
7
8 var iframe = document.createElement('iframe');
9 document.body.appendChild(iframe);
10 iframe.contentDocument.write('<script>top.doTest(/a/)</script>');
11 iframe.contentDocument.close();
12 document.write('DONE');