Skip to content

Commit

Permalink
chrome.cast.media test compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
hensm committed Jun 12, 2018
1 parent 26e2381 commit 57933bb
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
27 changes: 14 additions & 13 deletions ext/src/shim/media/enums/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use strict";

export const IdleReason = {
CANCELLED: "cancelled"
, INTERRUPTED: "interrupted"
, FINISHED: "finished"
, ERROR: "error"
CANCELLED: "CANCELLED"
, INTERRUPTED: "INTERRUPTED"
, FINISHED: "FINISHED"
, ERROR: "ERROR"
};

export const MediaCommand = {
Expand All @@ -15,11 +15,11 @@ export const MediaCommand = {
};

export const MetadataType = {
GENERIC: "GENERIC"
, MOVIE: "MOVIE"
, TV_SHOW: "TV_SHOW"
, MUSIC_TRACK: "MUSIC_TRACK"
, PHOTO: "PHOTO"
GENERIC: 0
, MOVIE: 1
, TV_SHOW: 2
, MUSIC_TRACK: 3
, PHOTO: 4
};

export const PlayerState = {
Expand All @@ -30,10 +30,10 @@ export const PlayerState = {
};

export const RepeatMode = {
OFF: "OFF"
, ALL: "ALL"
, SINGLE: "SINGLE"
, ALL_AND_SHUFFLE: "ALL_AND_SHUFFLE"
OFF: "REPEAT_OFF"
, ALL: "REPEAT_ALL"
, SINGLE: "REPEAT_SINGLE"
, ALL_AND_SHUFFLE: "REPEAT_ALL_AND_SHUFFLE"
};

export const ResumeState = {
Expand All @@ -59,6 +59,7 @@ export const TextTrackFontGenericFamily = {
SANS_SERIF: "SANS_SERIF"
, MONOSPACED_SANS_SERIF: "MONOSPACED_SANS_SERIF"
, SERIF: "SERIF"
, MONOSPACED_SERIF: "MONOSPACED_SERIF"
, CASUAL: "CASUAL"
, CURSIVE: "CURSIVE"
, SMALL_CAPITALS: "SMALL_CAPITALS"
Expand Down
12 changes: 12 additions & 0 deletions ext/src/shim/media/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,17 @@ export default {
, TvShowMediaMetadata
, VolumeRequest

, timeout: {
editTracksInfo: 0
, getStatus: 0
, load: 0
, pause: 0
, play: 0
, queue: 0
, seek: 0
, setVolume: 0
, stop: 0
}

, DEFAULT_MEDIA_RECEIVER_APP_ID: "CC1AD845"
};
4 changes: 4 additions & 0 deletions test/spec/chrome.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ describe("chrome", () => {
});
});

afterAll(() => {
driver.quit();
});


it("should exist", () => {
expect(chrome).toBeDefined();
Expand Down

0 comments on commit 57933bb

Please sign in to comment.