forked from emberjs/ember-legacy-views
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ember.Select
.create
, .reopen
, .extend
do not issue deprecati…
…on warnings Deprecated in Ember here: emberjs/ember.js#11416 fixes emberjs#3
- Loading branch information
Showing
3 changed files
with
44 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { module, test } from 'qunit'; | ||
|
||
import Ember from 'ember'; | ||
|
||
module('Ember.Select'); | ||
|
||
test('does not issue deprecation on create', function(assert){ | ||
assert.expect(1); | ||
|
||
try { | ||
Ember.Select.create(); | ||
} catch(e) { | ||
assert.ok(false, `An error was thrown unexpectedly: ${e.message}`); | ||
} | ||
|
||
assert.ok(true, 'No deprecation is thrown'); | ||
}); | ||
|
||
test('does not issue deprecation on reopen', function(assert){ | ||
assert.expect(1); | ||
|
||
try { | ||
Ember.Select.reopen(); | ||
} catch(e) { | ||
assert.ok(false, `An error was thrown unexpectedly: ${e.message}`); | ||
} | ||
|
||
assert.ok(true, 'No deprecation is thrown'); | ||
}); | ||
|
||
test('does not issue deprecation on extend', function(assert){ | ||
assert.expect(1); | ||
|
||
try { | ||
Ember.Select.extend(); | ||
} catch(e) { | ||
assert.ok(false, `An error was thrown unexpectedly: ${e.message}`); | ||
} | ||
|
||
assert.ok(true, 'No deprecation is thrown'); | ||
}); |
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