mirror of
https://github.com/videojs/video.js.git
synced 2025-07-15 01:34:23 +02:00
@mmcc deprecated the options() function and removed internal uses. closes #2229
This commit is contained in:
@ -95,7 +95,7 @@ test('should do a deep merge of child options', function(){
|
||||
}
|
||||
});
|
||||
|
||||
var mergedOptions = comp.options();
|
||||
var mergedOptions = comp.options_;
|
||||
var children = mergedOptions['example'];
|
||||
|
||||
strictEqual(children['childOne']['foo'], 'baz', 'value three levels deep overridden');
|
||||
@ -132,7 +132,7 @@ test('should allows setting child options at the parent options level', function
|
||||
} catch(err) {
|
||||
ok(false, 'Child with `false` option was initialized');
|
||||
}
|
||||
equal(parent.children()[0].options()['foo'], true, 'child options set when children array is used');
|
||||
equal(parent.children()[0].options_['foo'], true, 'child options set when children array is used');
|
||||
|
||||
// using children object
|
||||
options = {
|
||||
@ -154,7 +154,7 @@ test('should allows setting child options at the parent options level', function
|
||||
} catch(err) {
|
||||
ok(false, 'Child with `false` option was initialized');
|
||||
}
|
||||
equal(parent.children()[0].options()['foo'], true, 'child options set when children object is used');
|
||||
equal(parent.children()[0].options_['foo'], true, 'child options set when children object is used');
|
||||
});
|
||||
|
||||
test('should dispose of component and children', function(){
|
||||
|
Reference in New Issue
Block a user