aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/js/config.toml4
-rw-r--r--test/js/style.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/js/config.toml b/test/js/config.toml
index 0224c241..51fefbd7 100644
--- a/test/js/config.toml
+++ b/test/js/config.toml
@@ -2,11 +2,11 @@
history = false
[[siteconf]]
-match = 'file:///.*'
+url = 'file:///.*'
scripting = true
[[siteconf]]
-match = 'file:///.*\.app\.html'
+url = 'file:///.*\.app\.html'
scripting = 'app'
[display]
diff --git a/test/js/style.html b/test/js/style.html
index dad596df..8fe5ae44 100644
--- a/test/js/style.html
+++ b/test/js/style.html
@@ -1,6 +1,6 @@
<!doctype html>
<style>
-y::before { color: blue }
+#y::before { color: blue }
</style>
<title>Style test</title>
<div id=x>Fail</div>
@@ -10,7 +10,7 @@ y::before { color: blue }
const y = document.getElementById("y");
assertEquals(y.style.cssText, "color: red; display: inline;");
assertEquals(window.getComputedStyle(y).cssText, "");
-assertEquals(window.getComputedStyle(y, "::before").color, "rgb(255, 0, 0)");
+assertEquals(window.getComputedStyle(y, "::before").color, "red");
y.remove();
document.getElementById("x").textContent = "Success";
</script>