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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/resources/device-emulation-test.js

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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 function setMetaViewport(override) 1 function setMetaViewport(override)
2 { 2 {
3 var VIEWPORTS = { 3 var VIEWPORTS = {
4 "w=320": "width=320", 4 "w=320": "width=320",
5 "w=dw": "width=device-width", 5 "w=dw": "width=device-width",
6 "w=980": "width=980", 6 "w=980": "width=980",
7 "none": "no viewport (desktop site)" 7 "none": "no viewport (desktop site)"
8 }; 8 };
9 9
10 var viewport = VIEWPORTS["none"]; 10 var viewport = VIEWPORTS["none"];
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 InspectorTest.emulateAndGetMetrics(width, height, deviceScaleFactor, viewpor t, insets, noReload, callback); 250 InspectorTest.emulateAndGetMetrics(width, height, deviceScaleFactor, viewpor t, insets, noReload, callback);
251 251
252 function callback() 252 function callback()
253 { 253 {
254 InspectorTest.log(InspectorTest._deviceEmulationResults.join("\n")); 254 InspectorTest.log(InspectorTest._deviceEmulationResults.join("\n"));
255 InspectorTest.completeTest(); 255 InspectorTest.completeTest();
256 } 256 }
257 }; 257 };
258 258
259 }; 259 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698