-
Notifications
You must be signed in to change notification settings - Fork 782
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The cost of supporting IE9-10, given we support IE11 is tiny it is only a handful of lines of code. In order to reduce the size of the 3.0 release and get it out the door, bring this back. This also allows it to be used by the latest jQuery 3.x which supports IE9 still. Note that an ESM bundle was introduced in QUnit 3.0.0-alpha.4, which is native ES6 and drops support for IE 9, IE 10 and IE 11, and indeed all down-compilation for ES5-era browsers. You can use that in order to get the same benefit in terms of bundle size. Having said that, QUnit has one of the leanest bundle sizes of any test framework even with IE9 support included.
- Loading branch information
Showing
12 changed files
with
34 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
"firefox_78", | ||
"firefox_previous", | ||
"firefox_current", | ||
"ie_9", | ||
"ie_10", | ||
"ie_11", | ||
"edge_15", | ||
"edge_18", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import { console } from './globals.js'; | ||
|
||
// Support IE 9: No console object, unless the developer tools are not open. | ||
|
||
// Support IE 9: Function#bind is supported, but no console.log.bind(). | ||
|
||
// Support: SpiderMonkey (mozjs 68+) | ||
// The console object has a log method, but no warn method. | ||
|
||
export default { | ||
warn: console | ||
? (console.warn || console.log).bind(console) | ||
? Function.prototype.bind.call(console.warn || console.log, console) | ||
: function () {} | ||
}; |
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
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