@@ -6,35 +6,35 @@ const fs = require('fs');
6
6
const karmaOutput = JSON . parse ( fs . readFileSync ( '/tmp/karma-result.json' ) ) ;
7
7
8
8
9
- let generatedBlacklist = { } ;
9
+ let generatedBlocklist = { } ;
10
10
for ( const desc of Object . keys ( karmaOutput ) ) {
11
- generatedBlacklist = { ...generatedBlacklist , ...getFullFailure ( karmaOutput [ desc ] , desc ) } ;
11
+ generatedBlocklist = { ...generatedBlocklist , ...getFullFailure ( karmaOutput [ desc ] , desc ) } ;
12
12
}
13
13
14
- // We want to "remember" the notes from the current blacklist on angular/angular unless the
14
+ // We want to "remember" the notes from the current blocklist on angular/angular unless the
15
15
// error message has changed. We need to know where the local angular/angular repo is.
16
16
const angularRepoPath = process . argv [ 2 ] ;
17
17
if ( ! angularRepoPath ) {
18
18
console . error ( 'Please provide the path to your local angular/angular repo as the first argument' ) ;
19
19
process . exit ( 1 ) ;
20
20
}
21
21
22
- // Read the contents of the previous blacklist .
23
- const previousBlacklistPath =
24
- path . join ( angularRepoPath , 'tools' , 'material-ci' , 'angular_material_test_blacklist .js' ) ;
25
- const previousBlacklistContent = fs . readFileSync ( previousBlacklistPath , 'utf-8' ) ;
22
+ // Read the contents of the previous blocklist .
23
+ const previousBlocklistPath =
24
+ path . join ( angularRepoPath , 'tools' , 'material-ci' , 'angular_material_test_blocklist .js' ) ;
25
+ const previousBlocklistContent = fs . readFileSync ( previousBlocklistPath , 'utf-8' ) ;
26
26
27
- // Because the blacklist is a javascript file meant to be executed, we just actually execute it with
27
+ // Because the blocklist is a javascript file meant to be executed, we just actually execute it with
28
28
// eval. Create a dummy `window` for it to add to.
29
29
const window = { } ;
30
- eval ( previousBlacklistContent ) ;
31
- const previousBlacklist = window . testBlacklist ;
30
+ eval ( previousBlocklistContent ) ;
31
+ const previousBlocklist = window . testBlocklist ;
32
32
33
33
// Copy any existing test notes.
34
- for ( const testName of Object . keys ( generatedBlacklist ) ) {
35
- if ( previousBlacklist [ testName ] &&
36
- generatedBlacklist [ testName ] . error === previousBlacklist [ testName ] . error ) {
37
- generatedBlacklist [ testName ] . notes = previousBlacklist [ testName ] . notes ;
34
+ for ( const testName of Object . keys ( generatedBlocklist ) ) {
35
+ if ( previousBlocklist [ testName ] &&
36
+ generatedBlocklist [ testName ] . error === previousBlocklist [ testName ] . error ) {
37
+ generatedBlocklist [ testName ] . notes = previousBlocklist [ testName ] . notes ;
38
38
}
39
39
}
40
40
@@ -49,24 +49,24 @@ const output =
49
49
*/
50
50
51
51
/**
52
- * Blacklist of unit tests from angular/material2 with ivy that are skipped when running on
53
- * angular/angular. As bugs are resolved, items should be removed from this blacklist .
52
+ * Blocklist of unit tests from angular/material2 with ivy that are skipped when running on
53
+ * angular/angular. As bugs are resolved, items should be removed from this blocklist .
54
54
*
55
55
* The \`notes\` section should be used to keep track of specific issues associated with the failures.
56
56
*/
57
57
58
58
// clang-format off
59
59
// tslint:disable
60
60
61
- window.testBlacklist = ${ JSON . stringify ( generatedBlacklist , null , 2 ) } ;
61
+ window.testBlocklist = ${ JSON . stringify ( generatedBlocklist , null , 2 ) } ;
62
62
// clang-format on` ;
63
63
64
64
// Write that sucker to dist.
65
- fs . writeFileSync ( 'dist/angular_material_test_blacklist .js' , output , 'utf-8' ) ;
65
+ fs . writeFileSync ( 'dist/angular_material_test_blocklist .js' , output , 'utf-8' ) ;
66
66
67
67
68
68
/**
69
- * Given a karma test result, get a blacklist entry in the form
69
+ * Given a karma test result, get a blocklist entry in the form
70
70
* {[full test name]: {error: '...', notes: '...'}}
71
71
*/
72
72
function getFullFailure ( result , fullName = '' ) {
0 commit comments