| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Supervised User test: page with iframes</title> | 3 <title>Supervised User test: page with iframes</title> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <script> | 6 <script> |
| 7 var iframe1loaded = false; | 7 var iframe1loaded = false; |
| 8 var iframe2loaded = false; | 8 var iframe2loaded = false; |
| 9 | 9 |
| 10 function sendValueToTest(value) { | 10 function sendValueToTest(value) { |
| 11 window.domAutomationController.setAutomationId(0); | |
| 12 window.domAutomationController.send(value); | 11 window.domAutomationController.send(value); |
| 13 } | 12 } |
| 14 | 13 |
| 15 function loaded1() { sendValueToTest(iframe1loaded); } | 14 function loaded1() { sendValueToTest(iframe1loaded); } |
| 16 function loaded2() { sendValueToTest(iframe2loaded); } | 15 function loaded2() { sendValueToTest(iframe2loaded); } |
| 17 </script> | 16 </script> |
| 18 <iframe src="http://www.iframe1.com/supervised_user/iframe.html" onload="ifram
e1loaded=true;"></iframe> | 17 <iframe src="http://www.iframe1.com/supervised_user/iframe.html" onload="ifram
e1loaded=true;"></iframe> |
| 19 <iframe src="http://www.iframe2.com/supervised_user/iframe.html" onload="ifram
e2loaded=true;"></iframe> | 18 <iframe src="http://www.iframe2.com/supervised_user/iframe.html" onload="ifram
e2loaded=true;"></iframe> |
| 20 </body> | 19 </body> |
| 21 </html> | 20 </html> |
| OLD | NEW |