@@ -37,11 +37,11 @@ public function testRenderScriptTags()
37
37
38
38
$ output = $ renderer ->renderWebpackScriptTags ('my_entry ' , 'custom_package ' );
39
39
$ this ->assertContains (
40
- '<script src="http://localhost:8080/build/file1.js" crossorigin="anonymous "></script> ' ,
40
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file1.js"></script> ' ,
41
41
$ output
42
42
);
43
43
$ this ->assertContains (
44
- '<script src="http://localhost:8080/build/file2.js" crossorigin="anonymous "></script> ' ,
44
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file2.js"></script> ' ,
45
45
$ output
46
46
);
47
47
}
@@ -68,7 +68,7 @@ public function testRenderScriptTagsWithBadFilename()
68
68
69
69
$ output = $ renderer ->renderWebpackScriptTags ('my_entry ' , 'custom_package ' );
70
70
$ this ->assertContains (
71
- '<script src="http://localhost:8080/build/file<"bad_chars.js" crossorigin="anonymous "></script> ' ,
71
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file<"bad_chars.js"></script> ' ,
72
72
$ output
73
73
);
74
74
}
@@ -114,17 +114,17 @@ public function testRenderScriptTagsWithinAnEntryPointCollection()
114
114
115
115
$ output = $ renderer ->renderWebpackScriptTags ('my_entry ' , 'custom_package ' );
116
116
$ this ->assertContains (
117
- '<script src="http://localhost:8080/build/file1.js" crossorigin="anonymous "></script> ' ,
117
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file1.js"></script> ' ,
118
118
$ output
119
119
);
120
120
$ output = $ renderer ->renderWebpackScriptTags ('my_entry ' , null , 'second ' );
121
121
$ this ->assertContains (
122
- '<script src="http://localhost:8080/build/file2.js" crossorigin="anonymous "></script> ' ,
122
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file2.js"></script> ' ,
123
123
$ output
124
124
);
125
125
$ output = $ renderer ->renderWebpackScriptTags ('my_entry ' , 'specific_package ' , 'third ' );
126
126
$ this ->assertContains (
127
- '<script src="http://localhost:8080/build/file3.js" crossorigin="anonymous "></script> ' ,
127
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file3.js"></script> ' ,
128
128
$ output
129
129
);
130
130
}
@@ -164,11 +164,11 @@ public function testRenderScriptTagsWithHashes()
164
164
165
165
$ output = $ renderer ->renderWebpackScriptTags ('my_entry ' , 'custom_package ' );
166
166
$ this ->assertContains (
167
- '<script src="http://localhost:8080/build/file1.js" integrity="sha384-Q86c+opr0lBUPWN28BLJFqmLhho+9ZcJpXHorQvX6mYDWJ24RQcdDarXFQYN8HLc" crossorigin="anonymous "></script> ' ,
167
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file1.js" integrity="sha384-Q86c+opr0lBUPWN28BLJFqmLhho+9ZcJpXHorQvX6mYDWJ24RQcdDarXFQYN8HLc"></script> ' ,
168
168
$ output
169
169
);
170
170
$ this ->assertContains (
171
- '<script src="http://localhost:8080/build/file2.js" integrity="sha384-ymG7OyjISWrOpH9jsGvajKMDEOP/mKJq8bHC0XdjQA6P8sg2nu+2RLQxcNNwE/3J" crossorigin="anonymous "></script> ' ,
171
+ '<script crossorigin="anonymous" src="http://localhost:8080/build/file2.js" integrity="sha384-ymG7OyjISWrOpH9jsGvajKMDEOP/mKJq8bHC0XdjQA6P8sg2nu+2RLQxcNNwE/3J"></script> ' ,
172
172
$ output
173
173
);
174
174
}
0 commit comments