Skip to content

Commit 11d2713

Browse files
authored
Build: Remove the migrateMute setter in PhantomJS in tests
We no longer test on PhantomJS but on Chrome Headless instead so disabling the warning logs didn't have any effect. On the other hand, it looks like console output from Chrome Headless is already silenced. Closes jquerygh-353
1 parent b859c76 commit 11d2713

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

test/iframeTest.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
* Load this file immediately after jQuery, before jQuery Migrate
44
*/
55

6-
// Don't spew on in the console window when we build
7-
// Warning messages are available to parent test in jQuery.migrateWarnings
8-
if ( navigator.userAgent.indexOf( "PhantomJS" ) >= 0 ) {
9-
jQuery.migrateMute = true;
10-
}
11-
126
// Support: IE9 only (no console at times)
137
if ( !window.console ) {
148
window.console = {};

test/migrate.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
/* exported expectWarning, expectNoWarning */
22

3-
// Don't spew on in the console window when we build
4-
if ( navigator.userAgent.indexOf( "PhantomJS" ) >= 0 ) {
5-
jQuery.migrateMute = true;
6-
}
7-
83
function expectWarning( assert, name, expected, fn ) {
94
if ( !fn ) {
105
fn = expected;

0 commit comments

Comments
 (0)