| // Copyright 2025 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // |
| // META: --screen-info={3000x2000 devicePixelRatio=2.0} |
| // META: --start-fullscreen |
| // |
| (async function(testRunner) { |
| const {session} = await testRunner.startBlank( |
| 'Tests --start-fullscreen switch with pixel scaling.'); |
| |
| const expression = ` |
| let lines = []; |
| lines.push('Screen: ' + screen.width + 'x' + screen.height); |
| lines.push('Outer: ' + outerWidth + 'x' + outerHeight); |
| lines.join(', '); |
| `; |
| |
| const result = await session.evaluate(expression); |
| |
| testRunner.log(result); |
| |
| testRunner.completeTest(); |
| }) |