This repository was archived by the owner on Sep 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed
packages/google-closure-compiler/test Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,17 @@ describe('command line interface', () => {
51
51
52
52
platforms . forEach ( ( platform ) => {
53
53
describe ( `${ platform } version` , ( ) => {
54
+ let originalTimeout ;
55
+ beforeEach ( ( ) => {
56
+ originalTimeout = jasmine . DEFAULT_TIMEOUT_INTERVAL ;
57
+ if ( platform === 'java' ) {
58
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
59
+ }
60
+ } ) ;
61
+ afterEach ( ( ) => {
62
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ;
63
+ } ) ;
64
+
54
65
it ( '--help flag' , async ( ) => {
55
66
const retVal =
56
67
await runCommand ( `${ cliPath } --platform=${ platform } --help` , { stdio : 'pipe' } ) ;
Original file line number Diff line number Diff line change @@ -114,8 +114,17 @@ describe('grunt-google-closure-compiler', () => {
114
114
platforms . forEach ( ( platform ) => {
115
115
describe ( `${ platform } version` , ( ) => {
116
116
let closureCompiler ;
117
+ let originalTimeout ;
117
118
beforeEach ( ( ) => {
118
119
closureCompiler = gruntPlugin ( mockGrunt , { platform} ) ;
120
+ originalTimeout = jasmine . DEFAULT_TIMEOUT_INTERVAL ;
121
+ if ( platform === 'java' ) {
122
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
123
+ }
124
+ } ) ;
125
+
126
+ afterEach ( ( ) => {
127
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ;
119
128
} ) ;
120
129
121
130
const ensureCorrectPlatformUtilized = ( ) => {
Original file line number Diff line number Diff line change @@ -89,6 +89,17 @@ describe('gulp-google-closure-compiler', function() {
89
89
'for(var a in window)this.props.push(a)};WindowInfo.prototype.list=function(){' +
90
90
'log(this.props.join(", "))};(new WindowInfo).list();\n' ;
91
91
92
+ let originalTimeout ;
93
+ beforeEach ( ( ) => {
94
+ originalTimeout = jasmine . DEFAULT_TIMEOUT_INTERVAL ;
95
+ if ( platform === 'java' ) {
96
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
97
+ }
98
+ } ) ;
99
+ afterEach ( ( ) => {
100
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ;
101
+ } ) ;
102
+
92
103
it ( 'should emit an error for invalid flag' , async ( ) => {
93
104
let resolvePromise ;
94
105
const complete = new Promise ( ( resolve ) => {
Original file line number Diff line number Diff line change @@ -38,6 +38,17 @@ describe('closure-compiler node bindings', () => {
38
38
} ) ;
39
39
40
40
describe ( 'java version' , ( ) => {
41
+ let originalTimeout ;
42
+ beforeEach ( ( ) => {
43
+ originalTimeout = jasmine . DEFAULT_TIMEOUT_INTERVAL ;
44
+ if ( platform === 'java' ) {
45
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = 10000 ;
46
+ }
47
+ } ) ;
48
+ afterEach ( ( ) => {
49
+ jasmine . DEFAULT_TIMEOUT_INTERVAL = originalTimeout ;
50
+ } ) ;
51
+
41
52
it ( 'should error when java is not in the path' , async ( ) => {
42
53
const compiler = new Compiler ( { version : true } ) ;
43
54
compiler . javaPath = 'DOES_NOT_EXIST' ;
You can’t perform that action at this time.
0 commit comments