1 <form action=
"resources/success.txt" method=
"GET" target=
"tg">
2 <object data=
"resources/logo.gif" type=
"image/gif" width=
"180" height=
"60">
3 <textarea id=
"abc" name=
"abc" rows=
"5" cols=
"70">Hello World
</textarea>
6 <iframe name=
"tg"></iframe>
7 <div id=
"result"></div>
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
14 window
.onload = function() {
15 document
.getElementsByTagName('iframe')[0].addEventListener('load', function () {
16 var expected_search
= "?abc=Hello+World";
17 var actual_search
= this.contentWindow
.location
.search
;
18 if (expected_search
== actual_search
)
19 document
.getElementById('result').textContent
= "PASS";
21 document
.getElementById('result').textContent
= "FAIL: actual=" + actual_search
;
22 if (window
.testRunner
)
23 testRunner
.notifyDone();
26 document
.getElementsByTagName('form')[0].submit();