aboutsummaryrefslogtreecommitdiff
path: root/tests/test_browser.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_browser.py')
-rw-r--r--tests/test_browser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_browser.py b/tests/test_browser.py
index 128820b3..b2cd62f8 100644
--- a/tests/test_browser.py
+++ b/tests/test_browser.py
@@ -183,7 +183,7 @@ If manually bisecting:
//text = text.replace(/>/g, ">");
//text = text.replace('\\n', '<br>', 'g');
element.value += text + "\\n";
- element.scrollTop = 99999; // focus on bottom
+ element.scrollTop = element.scrollHeight; // focus on bottom
};
})(),
printErr: function(text) {
@@ -274,7 +274,7 @@ If manually bisecting:
//text = text.replace(/>/g, "&gt;");
//text = text.replace('\\n', '<br>', 'g');
element.value += text + "\\n";
- element.scrollTop = 99999; // focus on bottom
+ element.scrollTop = element.scrollHeight; // focus on bottom
};
})(),
printErr: function(text) {
@@ -898,7 +898,7 @@ keydown(100);keyup(100); // trigger the end
return function(text) {
text = Array.prototype.slice.call(arguments).join(' ');
element.value += text + "\\n";
- element.scrollTop = 99999; // focus on bottom
+ element.scrollTop = element.scrollHeight; // focus on bottom
};
})()
};