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

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

Issue 2537223003: [DevTools] Introduce Project.isServiceProject method. (Closed)
Patch Set: rebased Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 996
997 /** 997 /**
998 * Returns all loaded non anonymous uiSourceCodes. 998 * Returns all loaded non anonymous uiSourceCodes.
999 * @return {!Array.<!Workspace.UISourceCode>} 999 * @return {!Array.<!Workspace.UISourceCode>}
1000 */ 1000 */
1001 TestSuite.prototype.nonAnonymousUISourceCodes_ = function() { 1001 TestSuite.prototype.nonAnonymousUISourceCodes_ = function() {
1002 /** 1002 /**
1003 * @param {!Workspace.UISourceCode} uiSourceCode 1003 * @param {!Workspace.UISourceCode} uiSourceCode
1004 */ 1004 */
1005 function filterOutService(uiSourceCode) { 1005 function filterOutService(uiSourceCode) {
1006 return !uiSourceCode.isFromServiceProject(); 1006 return !uiSourceCode.project().isServiceProject();
1007 } 1007 }
1008 1008
1009 var uiSourceCodes = Workspace.workspace.uiSourceCodes(); 1009 var uiSourceCodes = Workspace.workspace.uiSourceCodes();
1010 return uiSourceCodes.filter(filterOutService); 1010 return uiSourceCodes.filter(filterOutService);
1011 }; 1011 };
1012 1012
1013 /* 1013 /*
1014 * Evaluates the code in the console as if user typed it manually and invokes 1014 * Evaluates the code in the console as if user typed it manually and invokes
1015 * the callback when the result message is received and added to the console. 1015 * the callback when the result message is received and added to the console.
1016 * @param {string} code 1016 * @param {string} code
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 if (runtimeModel.executionContexts().length >= n) 1104 if (runtimeModel.executionContexts().length >= n)
1105 callback.call(null); 1105 callback.call(null);
1106 else 1106 else
1107 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated', checkForExecutionContexts.bind(this)); 1107 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated', checkForExecutionContexts.bind(this));
1108 } 1108 }
1109 }; 1109 };
1110 1110
1111 1111
1112 window.uiTests = new TestSuite(window.domAutomationController); 1112 window.uiTests = new TestSuite(window.domAutomationController);
1113 })(window); 1113 })(window);
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698