-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This introduces the new API, and a bunch of tests covering it. It replaces the old API as jsdom's default API, but the old API is still available, as explained in the new README. The additional changes made as part of this process include: * Changes the minimum Node.js version to v6 so we can start using new ECMAScript features. * Changes the virtual console's omitJsdomErrors option to omitJSDOMErrors, for consistency. * Fixes img elements to no longer fire load events unless they actually load something (which is only true in general when canvas is installed). * Makes the browser vm shim better in a few ways: - Use of `this` at top level works now - Use of `sandbox.eval()` works more like it does in Node - Adds a `Script` shim * Test reorganization and fixes: - Consolidates all tests of web platform features into test/to-port-to-wpts. - Consolidates all tests of the old API specifically to test/old-api. - Removes some old API tests when they were redundant with new API tests; old API will lose coverage, but it's going away eventually anyway. - Removes the jqueryify_url test, which wouldn't pass when offline; it's OK to lose some coverage for the old API. - Removes tests that weren't being run (mostly level3 stuff) or fixtures that weren't being used. - Updates port-finding and server setup to be more resilient in general.
- Loading branch information
Showing
366 changed files
with
5,390 additions
and
32,833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.