|
@@ -44,6 +44,16 @@ class LogEditor extends JSONEditor {
|
|
this.methods.push('onAfterAttach');
|
|
this.methods.push('onAfterAttach');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ protected onAfterShow(msg: Message): void {
|
|
|
|
+ super.onAfterShow(msg);
|
|
|
|
+ this.methods.push('onAfterShow');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ protected onUpdateRequest(msg: Message): void {
|
|
|
|
+ super.onUpdateRequest(msg);
|
|
|
|
+ this.methods.push('onUpdateRequest');
|
|
|
|
+ }
|
|
|
|
+
|
|
protected onBeforeDetach(msg: Message): void {
|
|
protected onBeforeDetach(msg: Message): void {
|
|
super.onBeforeDetach(msg);
|
|
super.onBeforeDetach(msg);
|
|
this.methods.push('onBeforeDetach');
|
|
this.methods.push('onBeforeDetach');
|
|
@@ -398,6 +408,20 @@ describe('apputils', () => {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ describe('#onAfterShow()', () => {
|
|
|
|
+
|
|
|
|
+ it('should update the editor', done => {
|
|
|
|
+ editor.hide();
|
|
|
|
+ Widget.attach(editor, document.body);
|
|
|
|
+ editor.show();
|
|
|
|
+ requestAnimationFrame(() => {
|
|
|
|
+ expect(editor.methods).to.contain('onUpdateRequest');
|
|
|
|
+ done();
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+
|
|
describe('#onBeforeDetach()', () => {
|
|
describe('#onBeforeDetach()', () => {
|
|
|
|
|
|
it('should remove event listeners', () => {
|
|
it('should remove event listeners', () => {
|