You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'test support for widget classes - from extraAC': function(){
91
95
varbot=this.editorBots.classic,
92
96
editor=bot.editor;
93
97
@@ -99,6 +103,22 @@ var tcs = {
99
103
assert.areSame('<p>x</p><oembed class="a b c">http://widget/classes</oembed><p>x</p>',bot.getData(),'classes transfered from widget.element back to data');
100
104
},100);
101
105
});
106
+
},
107
+
108
+
'test support for widget classes - from stylesSet': function(){
109
+
varbot=this.editorBots.classic,
110
+
editor=bot.editor;
111
+
112
+
assert.isTrue(editor.filter.check('oembed(foo)'),'class from a stylesSet is registered');
classes2Array(obj2Array(editor.widgets.instances)[0].getClasses()).sort(),'classes transfered from data to widget.element');
118
+
119
+
assert.areSame('<p>x</p><oembed class="bar foo">http://widget/classes</oembed><p>x</p>',bot.getData(),'classes transfered from widget.element back to data');
0 commit comments