summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--tests/html/wikireading.html.simple2
-rw-r--r--tests/showsimple.js4
-rwxr-xr-xtests/webkittest.sh2
4 files changed, 9 insertions, 2 deletions
diff --git a/TODO b/TODO
index 5a74f91..9e90e7c 100644
--- a/TODO
+++ b/TODO
@@ -1,3 +1,6 @@
chromium: is the script src=simplyread in background.html necessary?
add ctrl-alt-r to chromium extension
http://code.google.com/chrome/extensions/events.html
+make tests for chromium and firefox engines
+ https://developer.mozilla.org/en/Automated_testing_tips_and_tricks
+find out why alert is needed to allow surf tests to complete
diff --git a/tests/html/wikireading.html.simple b/tests/html/wikireading.html.simple
index 1aa37d1..ccd89ef 100644
--- a/tests/html/wikireading.html.simple
+++ b/tests/html/wikireading.html.simple
@@ -2,6 +2,8 @@
+
+
<div style="width:38em; margin:auto; text-align:justify; font-family:sans;"><h1 style="text-align: center">Slow reading - Wikipedia, the free encyclopedia</h1>
<!-- tagline -->
<div id="siteSub">From Wikipedia, the free encyclopedia</div>
diff --git a/tests/showsimple.js b/tests/showsimple.js
index a994348..86dfbe7 100644
--- a/tests/showsimple.js
+++ b/tests/showsimple.js
@@ -1,6 +1,8 @@
(function() {
stag = document.createElement("script");
- document.body.appendChild(stag).src="../simplyread.js";
+ stag.src="file://./simplyread.js";
+ document.body.appendChild(stag);
+ window.alert('Click me quick'); // this seems to make simplyread.js register..
simplyread();
console.log(document.body.innerHTML);
})();
diff --git a/tests/webkittest.sh b/tests/webkittest.sh
index d3e8887..412474b 100755
--- a/tests/webkittest.sh
+++ b/tests/webkittest.sh
@@ -7,7 +7,7 @@ test $# -ne 2 && echo usage $0 testhtml expectedoutput && exit 1
testjs=tests/showsimple.js
htmlloadtime=2
-scriptloadtime=2
+scriptloadtime=3
surf -x "file://./$1" > testxid 2>testoutput &
pid=$!