Automatically load eq.log into the reftest page.
This commit is contained in:
parent
4b96c06c27
commit
e90ac1d4cd
@ -134,6 +134,8 @@ function load() {
|
|||||||
if (params.log) {
|
if (params.log) {
|
||||||
ID("logentry").value = params.log;
|
ID("logentry").value = params.log;
|
||||||
log_pasted();
|
log_pasted();
|
||||||
|
} else if (params.web) {
|
||||||
|
loadFromWeb(params.web);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -187,6 +189,17 @@ function show_phase(phaseid) {
|
|||||||
ID("images").style.display = "none";
|
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() {
|
function fileentry_changed() {
|
||||||
show_phase("loading");
|
show_phase("loading");
|
||||||
var input = ID("fileentry");
|
var input = ID("fileentry");
|
||||||
|
@ -56,7 +56,8 @@ MIMEs = {
|
|||||||
'.json': 'application/json',
|
'.json': 'application/json',
|
||||||
'.pdf': 'application/pdf',
|
'.pdf': 'application/pdf',
|
||||||
'.xhtml': 'application/xhtml+xml',
|
'.xhtml': 'application/xhtml+xml',
|
||||||
'.ico': 'image/x-icon'
|
'.ico': 'image/x-icon',
|
||||||
|
'.log': 'text/plain'
|
||||||
}
|
}
|
||||||
|
|
||||||
class State:
|
class State:
|
||||||
@ -416,9 +417,11 @@ def processResults():
|
|||||||
print 'done'
|
print 'done'
|
||||||
|
|
||||||
def startReftest(browser):
|
def startReftest(browser):
|
||||||
|
url = "http://127.0.0.1:8080/test/resources/reftest-analyzer.xhtml"
|
||||||
|
url += "#web=/test/eq.log"
|
||||||
try:
|
try:
|
||||||
browser.setup()
|
browser.setup()
|
||||||
browser.start("resources/reftest-analyzer.xhtml")
|
browser.start(url)
|
||||||
print "Waiting for browser..."
|
print "Waiting for browser..."
|
||||||
browser.process.wait()
|
browser.process.wait()
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user