/usr/share/pyshared/nevow/livetest.js is in python-nevow 0.10.0-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | var loadObservers = [];
var addLoadObserver = function(observer) {
loadObservers.push(observer);
}
var loadNotify = function() {
for (var i in loadObservers) {
loadObservers[i]();
}
loadObservers = [];
}
var numPassed = 0;
var numFailed = 0;
var passed = function(whichTest) {
numPassed += 1;
document.getElementById('test-'+whichTest).className = 'test-passes';
document.getElementById('test-passes').innerHTML = numPassed;
}
var failed = function(whichTest, text) {
numFailed += 1;
var testRow = document.getElementById('test-'+whichTest)
testRow.className = 'test-failures';
testRow.childNodes[0].title = text;
document.getElementById('test-failures').innerHTML = numFailed;
}
var setContentLocation = function(newLocation) {
return document.getElementById('testframe').contentDocument.location = newLocation;
}
|