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/Source/devtools/scripts/extract_module/extract_module.js

Issue 2837083003: DevTools: create test infrastructure so devtools drives the test (Closed)
Patch Set: rebaseline 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 'use strict'; 4 'use strict';
5 const fs = require('fs'); 5 const fs = require('fs');
6 const path = require('path'); 6 const path = require('path');
7 7
8 const utils = require('../utils'); 8 const utils = require('../utils');
9 9
10 const FRONTEND_PATH = path.resolve(__dirname, '..', '..', 'front_end'); 10 const FRONTEND_PATH = path.resolve(__dirname, '..', '..', 'front_end');
11 const BUILD_GN_PATH = path.resolve(__dirname, '..', '..', 'BUILD.gn'); 11 const BUILD_GN_PATH = path.resolve(__dirname, '..', '..', 'BUILD.gn');
12 const SPECIAL_CASE_NAMESPACES_PATH = path.resolve(__dirname, '..', 'special_case _namespaces.json'); 12 const SPECIAL_CASE_NAMESPACES_PATH = path.resolve(__dirname, '..', 'special_case _namespaces.json');
13 13
14 /* 14 /*
15 * ========================================== 15 * ==========================================
16 * START EDITING HERE - TRANSFORMATION INPUTS 16 * START EDITING HERE - TRANSFORMATION INPUTS
17 * ========================================== 17 * ==========================================
18 */ 18 */
19 19
20 const APPLICATION_DESCRIPTORS = [ 20 const APPLICATION_DESCRIPTORS = [
21 'inspector.json', 21 'inspector.json',
22 'toolbox.json', 22 'toolbox.json',
23 'integration_test_runner.json',
23 'unit_test_runner.json', 24 'unit_test_runner.json',
24 'formatter_worker.json', 25 'formatter_worker.json',
25 'heap_snapshot_worker.json', 26 'heap_snapshot_worker.json',
26 'utility_shared_worker.json', 27 'utility_shared_worker.json',
27 ]; 28 ];
28 29
29 /* 30 /*
30 * If the transformation removes all the files of a module: 31 * If the transformation removes all the files of a module:
31 * ['text_editor'] 32 * ['text_editor']
32 */ 33 */
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 return string.split('') 717 return string.split('')
717 .map(function(char) { 718 .map(function(char) {
718 var charCode = char.charCodeAt(0); 719 var charCode = char.charCodeAt(0);
719 return charCode > 127 ? unicodeCharEscape(charCode) : char; 720 return charCode > 127 ? unicodeCharEscape(charCode) : char;
720 }) 721 })
721 .join(''); 722 .join('');
722 } 723 }
723 724
724 if (require.main === module) 725 if (require.main === module)
725 extractModule(); 726 extractModule();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698