Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed dyn_load test case

  • Loading branch information...
commit 8623e9be5b8862ae4c2cf19dd027099c4331536a 1 parent a39e640
Aron Kornhall authored
Showing with 16 additions and 0 deletions.
  1. +15 −0 test/fixtures/test_dynload.html
  2. +1 −0  test/fixtures/test_dynload.js
15 test/fixtures/test_dynload.html
View
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ </head>
+ <body>
+ <script>
+ setTimeout(function() {
+ var body = document.querySelector('body');
+ var script = document.createElement('script');
+ // script.type= 'text/javascript';
+ script.src= 'test_dynload.js';
+ body.appendChild(script);
+ }, 200);
+ </script>
+ </body>
+</html>
1  test/fixtures/test_dynload.js
View
@@ -0,0 +1 @@
+document.querySelector('body').innerHTML = location.hash.split('=')[1];
Please sign in to comment.
Something went wrong with that request. Please try again.