summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-25 13:48:30 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-25 13:48:30 -0800
commit84fc7f7892dd056c3df579bf5bd1cf27a20d5cc7 (patch)
treed578230082eae2b9dbe1d930e9c7f7c76163a756 /tests
parent054df391e65ff6e9f2f494176990d6bc2558881f (diff)
parent7da74b04f9733a801fbd1ff90acc55309121e1b6 (diff)
Merge pull request #1856 from coolwanglu/sdl
Implement SDL_LowerBlit
Diffstat (limited to 'tests')
-rw-r--r--tests/embind/shell.html2
-rw-r--r--tests/sdl_canvas_size.html2
-rw-r--r--tests/test_browser.py6
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/embind/shell.html b/tests/embind/shell.html
index f0ee10f8..7a3b0a07 100644
--- a/tests/embind/shell.html
+++ b/tests/embind/shell.html
@@ -48,7 +48,7 @@
//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) {
diff --git a/tests/sdl_canvas_size.html b/tests/sdl_canvas_size.html
index 50495049..37e3818f 100644
--- a/tests/sdl_canvas_size.html
+++ b/tests/sdl_canvas_size.html
@@ -51,7 +51,7 @@
//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) {
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, "&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) {
@@ -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
};
})()
};