Changeset 224621 in webkit
- Timestamp:
- Nov 9, 2017 12:12:04 AM (6 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r224606 r224621 1 2017-11-09 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 REGRESSION(r224566): [GTK][WPE] Many inspector tests are failing after r224566 4 https://bugs.webkit.org/show_bug.cgi?id=179419 5 6 Reviewed by Carlos Alberto Lopez Perez. 7 8 All of them fail with the following error: 9 10 Uncaught exception in Inspector page: ReferenceError: Can't find variable: CodeMirror [TestCombined.js:36658:15] 11 12 This is because Test.html, even when combined, is trying to load CodeMirror from External/CodeMirror, but 13 CodeMirror was already combined for Main.html. We need to also combine CodeMirror for Test.html. 14 15 * Scripts/copy-user-interface-resources.pl: 16 1 17 2017-11-08 Joseph Pecoraro <pecoraro@apple.com> 2 18 -
trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl
r221748 r224621 336 336 my $derivedSourcesTestHTML = File::Spec->catfile($derivedSourcesDir, 'Test.html'); 337 337 my $derivedSourcesTestJS = File::Spec->catfile($derivedSourcesDir, 'TestCombined.js'); 338 # Combine the Esprima JavaScript files for testing into a single file (Esprima.js). 338 # Combine the CodeMirror JavaScript files into single file (TestCodeMirror.js). 339 system($perl, $combineResourcesCmd, 340 '--input-dir', 'External/CodeMirror', 341 '--input-html', $derivedSourcesTestHTML, 342 '--input-html-dir', $uiRoot, 343 '--derived-sources-dir', $derivedSourcesDir, 344 '--output-dir', $derivedSourcesDir, 345 '--output-script-name', 'TestCodeMirror.js'); 346 347 # Combine the Esprima JavaScript files for testing into a single file (TestEsprima.js). 339 348 system($perl, $combineResourcesCmd, 340 349 '--input-dir', 'External/Esprima', … … 349 358 seedFile($targetTestJS, $inspectorLicense); 350 359 351 # Export the license into Esprima.js. 360 # Export the license into TestCodeMirror.js. 361 my $targetCodeMirrorJS = File::Spec->catfile($targetResourcePath, 'TestCodeMirror.js'); 362 seedFile($targetCodeMirrorJS, $codeMirrorLicense); 363 364 # Export the license into TestEsprima.js. 352 365 my $targetEsprimaJS = File::Spec->catfile($targetResourcePath, 'TestEsprima.js'); 353 366 seedFile($targetEsprimaJS, $esprimaLicense); … … 355 368 # Append TestCombined.js to the license that was exported above. 356 369 appendFile($targetTestJS, $derivedSourcesTestJS); 370 371 # Append CodeMirror.js to the license that was exported above. 372 my $derivedSourcesCodeMirrorJS = File::Spec->catfile($derivedSourcesDir, 'TestCodeMirror.js'); 373 appendFile($targetCodeMirrorJS, $derivedSourcesCodeMirrorJS); 357 374 358 375 # Append Esprima.js to the license that was exported above.
Note: See TracChangeset
for help on using the changeset viewer.