Skip to content

Commit 88d94be

Browse files
committed
no longer need to check headers in test-syntax
1 parent 74e7fd1 commit 88d94be

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tasks/test_syntax.js

-14
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,12 @@ function assertJasmineSuites() {
9292

9393
/*
9494
* tests about the contents of source (and lib) files:
95-
* - check for header comment
9695
* - check that we don't have any features that break in IE
9796
* - check that we don't use getComputedStyle unexpectedly
9897
* - check that require statements use lowercase (to match assertFileNames)
9998
* or match the case of the source file
10099
*/
101100
function assertSrcContents() {
102-
var licenseSrc = constants.licenseSrc;
103-
var licenseStr = licenseSrc.substring(2, licenseSrc.length - 2);
104101
var logs = [];
105102

106103
// These are forbidden in IE *only in SVG* but since
@@ -174,17 +171,6 @@ function assertSrcContents() {
174171
}
175172
}
176173
});
177-
178-
var header = comments[0];
179-
180-
if(!header || header.loc.start.line > 1) {
181-
logs.push(file + ' : has no header information.');
182-
return;
183-
}
184-
185-
if(header.value !== licenseStr) {
186-
logs.push(file + ' : has incorrect header information.');
187-
}
188174
});
189175

190176
/*

0 commit comments

Comments
 (0)