| <!DOCTYPE html> |
| |
| <html> |
| <head> |
| <style> |
| iframe { |
| display: block; |
| margin: 10px; |
| } |
| </style> |
| <script src="../../../resources/ui-helper.js"></script> |
| <script src="resources/wheel-handler-region-helper.js"></script> |
| <script> |
| var notificationsPending = 3; |
| |
| // Called from subframes. |
| function frameChanged() |
| { |
| receivedNotification(); |
| } |
| |
| function mainFrameLoaded() |
| { |
| receivedNotification(); |
| } |
| |
| function receivedNotification() |
| { |
| if (!--notificationsPending) |
| dumpRegionAndNotifyDone(); |
| } |
| |
| window.addEventListener('load', mainFrameLoaded, false); |
| </script> |
| </head> |
| <body> |
| |
| <iframe src="resources/gain-wheel-handler.html"></iframe> |
| <iframe src="resources/lose-wheel-handler.html"></iframe> |
| |
| <pre id="output"></pre> |
| |
| </body> |
| </html> |