Skip to content
Snippets Groups Projects
  • Mike Pennisi's avatar
    73aa0627
    Update browser runner to inject `assert.js` · 73aa0627
    Mike Pennisi authored
    Since the Python runner was updated to include `assert.js` in all tests
    unconditionally, a number of tests have been written that implicitly
    rely on its presence. The browser runner does not currently provide this
    file's contents to these tests, so they fail unconditionally.
    
    Update the browser runner to inject that file's contents into every test
    context.
    
    Note: the existing approach to file retrieval (namely loading via
    synchronous XHR requests) is inefficient and deprecated in some
    browsers. It is honored here for the sake of consistency and to minimize
    the changeset necessary to fix the browser runner.
    73aa0627
    History
    Update browser runner to inject `assert.js`
    Mike Pennisi authored
    Since the Python runner was updated to include `assert.js` in all tests
    unconditionally, a number of tests have been written that implicitly
    rely on its presence. The browser runner does not currently provide this
    file's contents to these tests, so they fail unconditionally.
    
    Update the browser runner to inject that file's contents into every test
    context.
    
    Note: the existing approach to file retrieval (namely loading via
    synchronous XHR requests) is inefficient and deprecated in some
    browsers. It is honored here for the sake of consistency and to minimize
    the changeset necessary to fix the browser runner.
runner.intl402.html 13.85 KiB