|
@@ -42,11 +42,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.isDisposed).to.be(true);
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new WidgetFactory();
|
|
|
- expect(() => { (factory as any).isDisposed = false; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#dispose()', () => {
|
|
@@ -89,11 +84,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.name).to.be('base64');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new Base64ModelFactory();
|
|
|
- expect(() => { (factory as any).name = ''; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#type', () => {
|
|
@@ -103,11 +93,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.fileType).to.be('file');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new Base64ModelFactory();
|
|
|
- expect(() => { (factory as any).fileType = 'file'; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#format', () => {
|
|
@@ -117,11 +102,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.fileFormat).to.be('base64');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new Base64ModelFactory();
|
|
|
- expect(() => { (factory as any).fileFormat = 'base64'; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
});
|
|
@@ -151,11 +131,6 @@ describe('docmanager/default', () => {
|
|
|
expect(model.isDisposed).to.be(true);
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let model = new DocumentModel();
|
|
|
- expect(() => { (model as any).isDisposed = false; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#contentChanged', () => {
|
|
@@ -277,11 +252,6 @@ describe('docmanager/default', () => {
|
|
|
expect(model.defaultKernelName).to.be('');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let model = new DocumentModel();
|
|
|
- expect(() => { (model as any).defaultKernelName = ''; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('defaultKernelLanguage', () => {
|
|
@@ -296,11 +266,6 @@ describe('docmanager/default', () => {
|
|
|
expect(model.defaultKernelLanguage).to.be('foo');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let model = new DocumentModel();
|
|
|
- expect(() => { (model as any).defaultKernelLanguage = ''; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#dispose()', () => {
|
|
@@ -369,11 +334,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.name).to.be('text');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new TextModelFactory();
|
|
|
- expect(() => { (factory as any).name = ''; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#type', () => {
|
|
@@ -383,11 +343,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.fileType).to.be('file');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new TextModelFactory();
|
|
|
- expect(() => { (factory as any).fileType = 'file'; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#format', () => {
|
|
@@ -397,11 +352,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.fileFormat).to.be('text');
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new TextModelFactory();
|
|
|
- expect(() => { (factory as any).fileFormat = 'text'; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#isDisposed', () => {
|
|
@@ -413,11 +363,6 @@ describe('docmanager/default', () => {
|
|
|
expect(factory.isDisposed).to.be(true);
|
|
|
});
|
|
|
|
|
|
- it('should be read-only', () => {
|
|
|
- let factory = new TextModelFactory();
|
|
|
- expect(() => { (factory as any).isDisposed = false; }).to.throwError();
|
|
|
- });
|
|
|
-
|
|
|
});
|
|
|
|
|
|
describe('#dispose()', () => {
|