зеркало из https://github.com/mozilla/gecko-dev.git
Bug 705156 - Fix flaky test embedding/test/test_window_open_units.html. r=roc
This commit is contained in:
Родитель
870b77f6eb
Коммит
7854dd2a53
|
@ -19,14 +19,25 @@ var viewer =
|
||||||
.QueryInterface(Components.interfaces.nsIDocShell)
|
.QueryInterface(Components.interfaces.nsIDocShell)
|
||||||
.contentViewer
|
.contentViewer
|
||||||
.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
|
.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
|
||||||
viewer.fullZoom = 2;
|
|
||||||
|
|
||||||
var w = window.open("about:blank", "", "width=200,height=100");
|
SimpleTest.waitForExplicitFinish();
|
||||||
is(w.innerWidth, 400, "wrong width");
|
|
||||||
is(w.innerHeight, 200, "wrong height");
|
|
||||||
w.close();
|
|
||||||
|
|
||||||
viewer.fullZoom = 1;
|
SimpleTest.waitForFocus(function() {
|
||||||
|
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||||
|
viewer.fullZoom = 2;
|
||||||
|
|
||||||
|
var p = window;
|
||||||
|
var w = window.open("about:blank", "", "width=200,height=100");
|
||||||
|
SimpleTest.waitForFocus(function() {
|
||||||
|
ok(w.innerWidth <= 402 && w.innerWidth >= 398, "width should be around twice what was requested");
|
||||||
|
ok(w.innerHeight <= 202 && w.innerWidth >= 198, "height should be around twice what was requested");
|
||||||
|
|
||||||
|
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||||
|
viewer.fullZoom = 1;
|
||||||
|
w.close();
|
||||||
|
SimpleTest.finish();
|
||||||
|
}, w, true);
|
||||||
|
}, window, false);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче