зеркало из https://github.com/mozilla/gecko-dev.git
Bug 588881 - Increase default viewport width to 980px [r=mfinkle]
This commit is contained in:
Родитель
b4f5448232
Коммит
c2a420adb4
|
@ -56,7 +56,7 @@ function getBrowser() {
|
|||
return Browser.selectedBrowser;
|
||||
}
|
||||
|
||||
const kDefaultBrowserWidth = 800;
|
||||
const kDefaultBrowserWidth = 980;
|
||||
|
||||
// Override sizeToContent in the main window. It breaks things (bug 565887)
|
||||
window.sizeToContent = function() {
|
||||
|
|
|
@ -55,7 +55,7 @@ function pageLoaded(url) {
|
|||
}
|
||||
|
||||
let testData = [
|
||||
{ width: 800, scale: 1 },
|
||||
{ width: 980, scale: 800/980 },
|
||||
{ width: 533.33, scale: 1.5 },
|
||||
{ width: 533.33, scale: 1.5 },
|
||||
{ width: 533.33, scale: 1.5, disableZoom: true },
|
||||
|
@ -92,7 +92,7 @@ function verifyBlank(n) {
|
|||
|
||||
// Check viewport settings
|
||||
let style = window.getComputedStyle(working_tab.browser, null);
|
||||
is(style.width, "800px", "Normal 'browser' width is 800 pixels");
|
||||
is(style.width, "980px", "Normal 'browser' width is 980 pixels");
|
||||
|
||||
loadTest(n);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta name="viewport" content=""/>
|
||||
|
||||
<!-- Expected: treat page like a desktop webpage -->
|
||||
<meta name="expected-width" content="800"/>
|
||||
<meta name="expected-width" content="980"/>
|
||||
<meta name="expected-scale" content="1"/>
|
||||
</head>
|
||||
<body>
|
||||
|
|
Загрузка…
Ссылка в новой задаче