Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/0896840ce13ca93bbd4b54810c89ef747a113db6
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/0896840ce13ca93bbd4b54810c89ef747a113db6
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/0896840ce13ca93bbd4b54810c89ef747a113db6

The branch, master has been updated
       via  0896840ce13ca93bbd4b54810c89ef747a113db6 (commit)
      from  7daf034fd94a8a07f9cbb5d070a085de69d184fd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf-test.git/commit/?id=0896840ce13ca93bbd4b54810c89ef747a113db6
commit 0896840ce13ca93bbd4b54810c89ef747a113db6
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Fixups for async timeout test
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/cgi-bin/and-then-js-async-cb-adds-timeout.js 
b/cgi-bin/and-then-js-async-cb-adds-timeout.js
index b53678b..e232561 100644
--- a/cgi-bin/and-then-js-async-cb-adds-timeout.js
+++ b/cgi-bin/and-then-js-async-cb-adds-timeout.js
@@ -6,6 +6,6 @@
 setTimeout(1000, function() {
     /* Add a <script> tag */
     var script = document.createElement("SCRIPT");
-    script.src = "https://test.netsurf-browser.org/hello-world.js";;
+    script.src = "https://test.netsurf-browser.org/html/hello-world.js";;
     document.body.appendChild(script);
 });
diff --git a/cgi-bin/and-then-js.cgi b/cgi-bin/and-then-js.cgi
index 1930df3..6c03589 100755
--- a/cgi-bin/and-then-js.cgi
+++ b/cgi-bin/and-then-js.cgi
@@ -16,9 +16,7 @@ print("")
 
 sleep_time = int(qs.get("t", [1])[0])
 
-print("{}Sleeping for {} seconds".format(prefix, sleep_time))
-
 time.sleep(sleep_time)
 
-print("{}Done sleeping {} seconds".format(prefix,sleep_time))
-
+with open("and-then-js-{}.js".format(content)) as fh:
+    print(fh.read())


-----------------------------------------------------------------------

Summary of changes:
 cgi-bin/and-then-js-async-cb-adds-timeout.js |    2 +-
 cgi-bin/and-then-js.cgi                      |    6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/cgi-bin/and-then-js-async-cb-adds-timeout.js 
b/cgi-bin/and-then-js-async-cb-adds-timeout.js
index b53678b..e232561 100644
--- a/cgi-bin/and-then-js-async-cb-adds-timeout.js
+++ b/cgi-bin/and-then-js-async-cb-adds-timeout.js
@@ -6,6 +6,6 @@
 setTimeout(1000, function() {
     /* Add a <script> tag */
     var script = document.createElement("SCRIPT");
-    script.src = "https://test.netsurf-browser.org/hello-world.js";;
+    script.src = "https://test.netsurf-browser.org/html/hello-world.js";;
     document.body.appendChild(script);
 });
diff --git a/cgi-bin/and-then-js.cgi b/cgi-bin/and-then-js.cgi
index 1930df3..6c03589 100755
--- a/cgi-bin/and-then-js.cgi
+++ b/cgi-bin/and-then-js.cgi
@@ -16,9 +16,7 @@ print("")
 
 sleep_time = int(qs.get("t", [1])[0])
 
-print("{}Sleeping for {} seconds".format(prefix, sleep_time))
-
 time.sleep(sleep_time)
 
-print("{}Done sleeping {} seconds".format(prefix,sleep_time))
-
+with open("and-then-js-{}.js".format(content)) as fh:
+    print(fh.read())


-- 
NetSurf test cases

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to