You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/03/01 17:52:50 UTC

spec commit: [CB-2389] Add test for an iframe load after main onload

Updated Branches:
  refs/heads/master 224aaa4ef -> 49306c912


[CB-2389] Add test for an iframe load after main onload


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/49306c91
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/49306c91
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/49306c91

Branch: refs/heads/master
Commit: 49306c912ef1ce76b8e0457cfd3661a32283f641
Parents: 224aaa4
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Mar 1 11:51:26 2013 -0500
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Mar 1 11:51:26 2013 -0500

----------------------------------------------------------------------
 misc/page2.html |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/49306c91/misc/page2.html
----------------------------------------------------------------------
diff --git a/misc/page2.html b/misc/page2.html
index 5c4b0d6..4d36c6c 100644
--- a/misc/page2.html
+++ b/misc/page2.html
@@ -57,8 +57,14 @@
      </div>
      apache.org
      <div class="iframe_container">
-       <iframe src="http://apache.org"></iframe>
+       <iframe src="" id="apacheiframe"></iframe>
      </div>
      <div><button class="backBtn" onclick="backHome();">Back</button></div>
   </body>
+  <script>
+    setTimeout(function() {
+        console.log('loading iframe after timeout.');
+        document.querySelector('#apacheiframe').src = 'http://apache.org';
+    }, 2000);
+  </script>
 </html>