Skip to content

Commit

Permalink
Add checks for offline content in support test.
Browse files Browse the repository at this point in the history
Change-Id: Id47ee898d09eaf843f1c73c98cfcb4dfddce52f4
  • Loading branch information
joeyparrish committed Apr 28, 2015
1 parent 7dc3c1b commit ac56a6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions support.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ testForClass(window, 'VTTCue', false);
testForProperty(document, 'fullscreenElement', false);
testForProperty(document, 'fullScreenElement', false);
testForClassUsable(window, 'CustomEvent', true, ['']);
testForProperty(window, 'indexedDB', false);

// Codecs:
testForMimeType(vp8Type);
Expand Down Expand Up @@ -323,6 +324,7 @@ function onAsyncComplete() {
var anyKeySystems = found[clearKeyId] || found[widevineId] ||
found[playReadyId] || found[adobeAccessId] ||
found[fairPlayId];
var offline = found['indexedDB'];
var fullscreenApi = found['fullscreenElement'] || found['fullScreenElement'];
var requiresPolyfills = !latestEme || !found['getVideoPlaybackQuality'] ||
!document.fullscreenElement || !found['CustomEvent'];
Expand Down Expand Up @@ -351,6 +353,7 @@ function onAsyncComplete() {
summary.push(reportEntry('QoE Stats', qoe, false));
summary.push(reportEntry('Subtitles', subtitles, false));
summary.push(['Encrypted Content', emeStatus, emeValue]);
summary.push(reportEntry('Offline Content', offline, false));
summary.push(['Requires Polyfills', requiresPolyfills ? kInfo : kGood,
'yes', 'natively supported!']);
summary.push(reportDivider());
Expand Down

0 comments on commit ac56a6c

Please sign in to comment.