Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/emulation/device-emulation-initial-scale-expected.txt

Issue 1814963002: Use process/control messages (instead of RVH messages) for layout tests. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 CONSOLE ERROR: line 1: Uncaught TypeError: DevToolsAPI.embedderMessageAck is not a function
2 CONSOLE ERROR: line 1: Uncaught TypeError: DevToolsAPI.embedderMessageAck is not a function
3 CONSOLE ERROR: line 1: Uncaught TypeError: DevToolsAPI.embedderMessageAck is not a function
4 CONSOLE ERROR: line 1: Uncaught TypeError: DevToolsAPI.embedderMessageAck is not a function
5 CONSOLE ERROR: line 1: Uncaught TypeError: DevToolsAPI.embedderMessageAck is not a function
6 CONSOLE ERROR: line 1: Uncaught TypeError: DevToolsAPI.embedderMessageAck is not a function
1 Tests that turning on device emulation with a non-1 device pixel ratio sets the appropriate initial scale. Page scale is reflected by the innerWidth and innerHe ight properties. Since the layout width is set to 980 (in the viewport meta tag) , and the emulated viewport width is 490 px, the initial scale should be 490/980 = 0.5. i.e. innerWidth=980 innerHeight=640. 7 Tests that turning on device emulation with a non-1 device pixel ratio sets the appropriate initial scale. Page scale is reflected by the innerWidth and innerHe ight properties. Since the layout width is set to 980 (in the viewport meta tag) , and the emulated viewport width is 490 px, the initial scale should be 490/980 = 0.5. i.e. innerWidth=980 innerHeight=640.
2 8
3 Page reloaded. 9 Page reloaded.
4 Emulating device: 490x320x3 viewport='w=980' 10 Emulating device: 490x320x3 viewport='w=980'
5 Device: 11 Device:
6 window.screenX = 0px 12 window.screenX = 0px
7 window.screenY = 0px 13 window.screenY = 0px
8 Viewport: = ?w=980 14 Viewport: = ?w=980
9 @media orientation = landscape 15 @media orientation = landscape
10 window.orientation 16 window.orientation
(...skipping 21 matching lines...) Expand all
32 window.innerHeight = 640px 38 window.innerHeight = 640px
33 @media height = 640px 39 @media height = 640px
34 doc.docElem.clientHeight = 1000px 40 doc.docElem.clientHeight = 1000px
35 doc.docElem.offsetHeight = 1000px 41 doc.docElem.offsetHeight = 1000px
36 doc.docElem.scrollHeight = 1000px 42 doc.docElem.scrollHeight = 1000px
37 doc.body.clientHeight = 640px 43 doc.body.clientHeight = 640px
38 doc.body.offsetHeight = 1000px 44 doc.body.offsetHeight = 1000px
39 doc.body.scrollHeight = 1000px 45 doc.body.scrollHeight = 1000px
40 46
41 47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698