Changeset 224621 in webkit


Ignore:
Timestamp:
Nov 9, 2017 12:12:04 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

REGRESSION(r224566): [GTK][WPE] Many inspector tests are failing after r224566
https://bugs.webkit.org/show_bug.cgi?id=179419

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2017-11-09
Reviewed by Carlos Alberto Lopez Perez.

All of them fail with the following error:

Uncaught exception in Inspector page: ReferenceError: Can't find variable: CodeMirror [TestCombined.js:36658:15]

This is because Test.html, even when combined, is trying to load CodeMirror from External/CodeMirror, but
CodeMirror was already combined for Main.html. We need to also combine CodeMirror for Test.html.

  • Scripts/copy-user-interface-resources.pl:
Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r224606 r224621  
     12017-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
    1172017-11-08  Joseph Pecoraro  <pecoraro@apple.com>
    218
  • trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl

    r221748 r224621  
    336336    my $derivedSourcesTestHTML = File::Spec->catfile($derivedSourcesDir, 'Test.html');
    337337    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).
    339348    system($perl, $combineResourcesCmd,
    340349        '--input-dir', 'External/Esprima',
     
    349358    seedFile($targetTestJS, $inspectorLicense);
    350359
    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.
    352365    my $targetEsprimaJS = File::Spec->catfile($targetResourcePath, 'TestEsprima.js');
    353366    seedFile($targetEsprimaJS, $esprimaLicense);
     
    355368    # Append TestCombined.js to the license that was exported above.
    356369    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);
    357374
    358375    # Append Esprima.js to the license that was exported above.
Note: See TracChangeset for help on using the changeset viewer.