diff --git a/test/resources/reftest-analyzer.xhtml b/test/resources/reftest-analyzer.xhtml index c59f5b899..e4071f232 100644 --- a/test/resources/reftest-analyzer.xhtml +++ b/test/resources/reftest-analyzer.xhtml @@ -134,6 +134,8 @@ function load() { if (params.log) { ID("logentry").value = params.log; log_pasted(); + } else if (params.web) { + loadFromWeb(params.web); } } @@ -187,6 +189,17 @@ function show_phase(phaseid) { ID("images").style.display = "none"; } +function loadFromWeb(url) { + var r = new XMLHttpRequest(); + r.open("GET", url); + r.onreadystatechange = function() { + if (r.readyState == 4) { + process_log(r.response); + } + } + r.send(null); +} + function fileentry_changed() { show_phase("loading"); var input = ID("fileentry"); diff --git a/test/test.py b/test/test.py index d088683a4..662f2d8e4 100644 --- a/test/test.py +++ b/test/test.py @@ -56,7 +56,8 @@ MIMEs = { '.json': 'application/json', '.pdf': 'application/pdf', '.xhtml': 'application/xhtml+xml', - '.ico': 'image/x-icon' + '.ico': 'image/x-icon', + '.log': 'text/plain' } class State: @@ -416,9 +417,11 @@ def processResults(): print 'done' def startReftest(browser): + url = "http://127.0.0.1:8080/test/resources/reftest-analyzer.xhtml" + url += "#web=/test/eq.log" try: browser.setup() - browser.start("resources/reftest-analyzer.xhtml") + browser.start(url) print "Waiting for browser..." browser.process.wait() finally: