Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thsmi/sieve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Schmid <schmid-thomas@gmx.net>2020-05-16 16:47:05 +0300
committerThomas Schmid <schmid-thomas@gmx.net>2020-05-16 16:47:05 +0300
commit1c862a276f7821e2b09aeae4ad8935ec37ad269e (patch)
tree1529ae959f85cad29993aae010f6064428b20386 /tests
parenta669596e379d0f224d6b0b708257e532818ce0d9 (diff)
Externalize i18n Strings, Replace jQuery.
* Externalize and translate some more strings (#267) * Replace some more jQuery (#201)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/js/Suite.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/js/Suite.js b/tests/js/Suite.js
index f8334536..ab1fde01 100755
--- a/tests/js/Suite.js
+++ b/tests/js/Suite.js
@@ -172,8 +172,11 @@
const that = this;
- $("#divFrame")
- .empty()
+ const frame = document.querySelector("#divFrame");
+ while (frame.firstChild)
+ frame.removeChild(frame.firstChild);
+
+ $(frame)
.append($("<iframe/>")
.attr("id", "testFrame")
.load(function () {
@@ -244,7 +247,9 @@
* Clears all results...
*/
net.tschmid.yautt.test.server.clear = function () {
- $("#divOutput").empty();
+ const output = document.querySelector("#divOutput");
+ while (output.firstChild)
+ output.removeChild(output.firstChild);
$("#tests div").each(function () {
$(this).css("color", "");
@@ -302,7 +307,9 @@
});
document.querySelector("#result-clear").addEventListener("click", () => {
- $("#divOutput").empty();
+ const output = document.querySelector("#divOutput");
+ while (output.firstChild)
+ output.removeChild(output.firstChild);
$("#tests div").each(function () {
$(this).css("color", "");