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

Side by Side Diff: Source/devtools/front_end/Tests.js

Issue 355393004: [DevTools] Rename "emulateViewport" to "mobile". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: another rebase Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 688
689 function checkMetrics(consoleResult) 689 function checkMetrics(consoleResult)
690 { 690 {
691 test.assertEquals('"' + JSON.stringify(metrics) + '"', consoleResult , "Wrong metrics for params: " + JSON.stringify(params)); 691 test.assertEquals('"' + JSON.stringify(metrics) + '"', consoleResult , "Wrong metrics for params: " + JSON.stringify(params));
692 callback(); 692 callback();
693 } 693 }
694 } 694 }
695 695
696 function step1() 696 function step1()
697 { 697 {
698 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 1, emulateV iewport: false, fitWindow: true}, {width: 1200, height: 1000, deviceScaleFactor: 1}, step2); 698 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 1, mobile: false, fitWindow: true}, {width: 1200, height: 1000, deviceScaleFactor: 1}, step 2);
699 } 699 }
700 700
701 function step2() 701 function step2()
702 { 702 {
703 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 1, emulateV iewport: false, fitWindow: false}, {width: 1200, height: 1000, deviceScaleFactor : 1}, step3); 703 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 1, mobile: false, fitWindow: false}, {width: 1200, height: 1000, deviceScaleFactor: 1}, ste p3);
704 } 704 }
705 705
706 function step3() 706 function step3()
707 { 707 {
708 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 3, emulateV iewport: false, fitWindow: true}, {width: 1200, height: 1000, deviceScaleFactor: 3}, step4); 708 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 3, mobile: false, fitWindow: true}, {width: 1200, height: 1000, deviceScaleFactor: 3}, step 4);
709 } 709 }
710 710
711 function step4() 711 function step4()
712 { 712 {
713 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 3, emulateV iewport: false, fitWindow: false}, {width: 1200, height: 1000, deviceScaleFactor : 3}, finish); 713 testOverrides({width: 1200, height: 1000, deviceScaleFactor: 3, mobile: false, fitWindow: false}, {width: 1200, height: 1000, deviceScaleFactor: 3}, fin ish);
714 } 714 }
715 715
716 function finish() 716 function finish()
717 { 717 {
718 test.releaseControl(); 718 test.releaseControl();
719 } 719 }
720 720
721 step1(); 721 step1();
722 test.takeControl(); 722 test.takeControl();
723 }; 723 };
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 var oldLoadCompleted = InspectorFrontendAPI.loadCompleted; 1032 var oldLoadCompleted = InspectorFrontendAPI.loadCompleted;
1033 InspectorFrontendAPI.loadCompleted = function() 1033 InspectorFrontendAPI.loadCompleted = function()
1034 { 1034 {
1035 oldLoadCompleted.call(InspectorFrontendAPI); 1035 oldLoadCompleted.call(InspectorFrontendAPI);
1036 runTests(); 1036 runTests();
1037 } 1037 }
1038 1038
1039 })(); 1039 })();
1040 1040
1041 } 1041 }
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/devtools/front_end/elements/OverridesView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698