diff options
Diffstat (limited to 'browser/devtools/netmonitor/test/html_sorting-test-page.html')
-rw-r--r-- | browser/devtools/netmonitor/test/html_sorting-test-page.html | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/browser/devtools/netmonitor/test/html_sorting-test-page.html b/browser/devtools/netmonitor/test/html_sorting-test-page.html deleted file mode 100644 index 582d84aea..000000000 --- a/browser/devtools/netmonitor/test/html_sorting-test-page.html +++ /dev/null @@ -1,47 +0,0 @@ -<!-- Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ --> -<!doctype html> - -<html> - <head> - <meta charset="utf-8"/> - <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> - <meta http-equiv="Pragma" content="no-cache" /> - <meta http-equiv="Expires" content="0" /> - <title>Network Monitor test page</title> - </head> - - <body> - <p>Sorting test</p> - - <script type="text/javascript"> - function get(aAddress, aIndex, aCallback) { - var xhr = new XMLHttpRequest(); - // Use a random parameter to defeat caching. - xhr.open("GET" + aIndex, aAddress + "?index=" + aIndex + "&" + Math.random(), true); - - xhr.onreadystatechange = function() { - if (this.readyState == this.DONE) { - aCallback(); - } - }; - xhr.send(null); - } - - function performRequests() { - get("sjs_sorting-test-server.sjs", 1, function() { - get("sjs_sorting-test-server.sjs", 5, function() { - get("sjs_sorting-test-server.sjs", 2, function() { - get("sjs_sorting-test-server.sjs", 4, function() { - get("sjs_sorting-test-server.sjs", 3, function() { - // Done. - }); - }); - }); - }); - }); - } - </script> - </body> - -</html> |