Skip to content

Commit

Permalink
Chore: Rename test-html files and update fixture loading (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinHoldstock authored Apr 17, 2017
1 parent 983dda9 commit 8285e39
Show file tree
Hide file tree
Showing 39 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"build/**",
"src/lib/polyfill.js",
"src/lib/browser.js",
"src/lib/viewers/box3d/model3d/Model3dAnimationClipsPullup.js",
"src/lib/viewers/box3d/model3d/model3dSettingsPullup.js",
"src/lib/viewers/box3d/model3d/Model3dVrControls.js",
"src/lib/viewers/box3d/model3d/Model3DAnimationClipsPullup.js",
"src/lib/viewers/box3d/model3d/model3DSettingsPullup.js",
"src/lib/viewers/box3d/model3d/Model3DVrControls.js",
"src/lib/viewers/box3d/**/SceneEntities.js",
"src/lib/viewers/box3d/**Constants.js",
"src/lib/viewers/doc/doc-preloader.js"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/box3d/__tests__/Box3DViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('lib/viewers/box3d/Box3DViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/box3d/__tests__/Box3D-test.html');
fixture.load('viewers/box3d/__tests__/Box3DViewer-test.html');
containerEl = document.querySelector('.container');
stubs.BoxSDK = sandbox.stub(window, 'BoxSDK');
box3d = new Box3DViewer({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('lib/viewers/box3d/image360/Image360Viewer', () => {
});

beforeEach(() => {
fixture.load('viewers/box3d/image360/__tests__/Image360-test.html');
fixture.load('viewers/box3d/image360/__tests__/Image360Viewer-test.html');
containerEl = document.querySelector('.container');
viewer = new Image360Viewer({
container: containerEl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('lib/viewers/box3d/model3d/Model3DViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/box3d/model3d/__tests__/Model3D-test.html');
fixture.load('viewers/box3d/model3d/__tests__/Model3DViewer-test.html');
containerEl = document.querySelector('.container');
stubs.BoxSDK = sandbox.stub(window, 'BoxSDK');
model3d = new Model3DViewer({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('lib/viewers/box3d/video360/Video360Viewer', () => {
});

beforeEach(() => {
fixture.load('viewers/box3d/video360/__tests__/Video360-test.html');
fixture.load('viewers/box3d/video360/__tests__/Video360Viewer-test.html');
containerEl = document.querySelector('.container');
options.container = containerEl;
options.location = {};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/doc/__tests__/DocumentViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('lib/viewers/doc/DocumentViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/doc/__tests__/Document-test.html');
fixture.load('viewers/doc/__tests__/DocumentViewer-test.html');

containerEl = document.querySelector('.container');
doc = new DocumentViewer({
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/doc/__tests__/PresentationViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('lib/viewers/doc/PresentationViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/doc/__tests__/Presentation-test.html');
fixture.load('viewers/doc/__tests__/PresentationViewer-test.html');

containerEl = document.querySelector('.container');
presentation = new PresentationViewer({
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/error/__tests__/PreviewErrorViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('lib/viewers/error/PreviewErrorViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/error/__tests__/PreviewError-test.html');
fixture.load('viewers/error/__tests__/PreviewErrorViewer-test.html');
error = new PreviewErrorViewer({
file: {
id: '1'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/iframe/__tests__/IFrameViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('lib/viewers/iframe/IFrameViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/iframe/__tests__/IFrame-test.html');
fixture.load('viewers/iframe/__tests__/IFrameViewer-test.html');
containerEl = document.querySelector('.container');
iframe = new IFrameViewer({
container: containerEl,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/image/__tests__/ImageBaseViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('lib/viewers/image/ImageBaseViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/image/__tests__/ImageBase-test.html');
fixture.load('viewers/image/__tests__/ImageBaseViewer-test.html');
stubs.emit = sandbox.stub(fullscreen, 'addListener');
containerEl = document.querySelector('.container');
imageBase = new ImageBaseViewer(containerEl);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/image/__tests__/MultiImageViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('lib/viewers/image/MultiImageViewer', () => {
beforeEach(() => {
clock = sinon.useFakeTimers();
sandbox.stub(Browser, 'isMobile').returns(false);
fixture.load('viewers/image/__tests__/MultiImage-test.html');
fixture.load('viewers/image/__tests__/MultiImageViewer-test.html');
containerEl = document.querySelector('.container');
stubs.emit = sandbox.stub(fullscreen, 'addListener');
options = {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/media/__tests__/DashViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('lib/viewers/media/DashViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/media/__tests__/Dash-test.html');
fixture.load('viewers/media/__tests__/DashViewer-test.html');
const containerEl = document.querySelector('.container');

dash = new DashViewer({
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/media/__tests__/MP3Viewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('lib/viewers/media/MP3Viewer', () => {
});

beforeEach(() => {
fixture.load('viewers/media/__tests__/MP3-test.html');
fixture.load('viewers/media/__tests__/MP3Viewer-test.html');
const containerEl = document.querySelector('.container');
mp3 = new MP3Viewer({
container: containerEl,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/media/__tests__/MP4Viewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('lib/viewers/media/MP4Viewer', () => {
});

beforeEach(() => {
fixture.load('viewers/media/__tests__/MP4-test.html');
fixture.load('viewers/media/__tests__/MP4Viewer-test.html');
const containerEl = document.querySelector('.container');
mp4 = new MP4Viewer({
container: containerEl,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/media/__tests__/MediaBaseViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('lib/viewers/media/MediaBaseViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/media/__tests__/MediaBase-test.html');
fixture.load('viewers/media/__tests__/MediaBaseViewer-test.html');
stubs = {};
media = new MediaBaseViewer({
file: {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/media/__tests__/VideoBaseViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('lib/viewers/media/VideoBaseViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/media/__tests__/VideoBase-test.html');
fixture.load('viewers/media/__tests__/VideoBaseViewer-test.html');
videoBase = new VideoBaseViewer({
file: {
id: 1
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/office/__tests__/OfficeViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('lib/viewers/office/OfficeViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/office/__tests__/Office-test.html');
fixture.load('viewers/office/__tests__/OfficeViewer-test.html');
office = new OfficeViewer({
container: '.container',
file: {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/viewers/swf/__tests__/SWFViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('lib/viewers/SWFViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/swf/__tests__/SWF-test.html');
fixture.load('viewers/swf/__tests__/SWFViewer-test.html');
containerEl = document.querySelector('.container');
swf = new SWFViewer({
file: {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/text/__tests__/MarkdownViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('lib/viewers/text/MarkdownViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/text/__tests__/Markdown-test.html');
fixture.load('viewers/text/__tests__/MarkdownViewer-test.html');
containerEl = document.querySelector('.container');
markdown = new MarkdownViewer({
file: {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/viewers/text/__tests__/PlainTextViewer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('lib/viewers/text/PlainTextViewer', () => {
});

beforeEach(() => {
fixture.load('viewers/text/__tests__/Text-test.html');
fixture.load('viewers/text/__tests__/PlainTextViewer-test.html');
containerEl = document.querySelector('.container');
text = new PlainTextViewer({
file: {
Expand Down

0 comments on commit 8285e39

Please sign in to comment.