зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1368896 - rewrite dom/base/test/test_viewport_scroll.html. r=smaug
This commit is contained in:
Родитель
7364f7009f
Коммит
68f70ea183
|
@ -0,0 +1 @@
|
|||
<html><body style='height:2000px; width:2000px;'>
|
|
@ -0,0 +1 @@
|
|||
<?xml-stylesheet href='data:text/css,html { display:block; height:2000px; width:2000px; }'?><foo><html></html></foo>
|
|
@ -156,6 +156,8 @@ support-files =
|
|||
file_settimeout_inner.html
|
||||
file_simplecontentpolicy.js
|
||||
file_timer_flood.html
|
||||
file_viewport_scroll_quirks.html
|
||||
file_viewport_scroll_xml.xml
|
||||
file_websocket_basic_wsh.py
|
||||
file_websocket_hello_wsh.py
|
||||
file_websocket_http_resource.txt
|
||||
|
|
|
@ -20,9 +20,9 @@ var quirks = document.getElementById("quirks");
|
|||
var standards = document.getElementById("standards");
|
||||
var xml = document.getElementById("xml");
|
||||
|
||||
quirks.src = "data:text/html,<html><body style='height:2000px; width:2000px;'>";
|
||||
standards.src = "data:text/html,<!DOCTYPE HTML><html><body style='height:2000px; width:2000px;'>";
|
||||
xml.src = "data:text/xml,<?xml-stylesheet href='data:text/css,html { display:block; height:2000px; width:2000px; }'?><foo><html></html></foo>";
|
||||
quirks.src = "file_viewport_scroll_quirks.html";
|
||||
standards.srcdoc = "<!DOCTYPE HTML><html><body style='height:2000px; width:2000px;'>";
|
||||
xml.src = "file_viewport_scroll_xml.xml";
|
||||
|
||||
function subtest(winProp, elemProp, win, correctElement, elemToSet, otherElem1, otherElem2) {
|
||||
win.scrollTo(50, 50);
|
||||
|
|
Загрузка…
Ссылка в новой задаче