Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6851)

Unified Diff: chrome/test/data/media/eme_player_js/test_config.js

Issue 408993002: Have media content and chrome browser tests load data from media/test/data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/media/eme_player_js/test_config.js
diff --git a/chrome/test/data/media/eme_player_js/test_config.js b/chrome/test/data/media/eme_player_js/test_config.js
deleted file mode 100644
index e654a1cea067759487d33a5381c5ebccabbaf998..0000000000000000000000000000000000000000
--- a/chrome/test/data/media/eme_player_js/test_config.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Test configuration used by test page to configure the player app and other
-// test specific configurations.
-function TestConfig() {
- this.mediaFile = null;
- this.keySystem = null;
- this.mediaType = null;
- this.licenseServerURL = null;
- this.useMSE = false;
- this.usePrefixedEME = false;
- this.runFPS = false;
-}
-
-TestConfig.prototype.loadQueryParams = function() {
- // Load query parameters and set default values.
- var r = /([^&=]+)=?([^&]*)/g;
- // Lambda function for decoding extracted match values. Replaces '+' with
- // space so decodeURIComponent functions properly.
- var decodeURI = function decodeURI(s) {
- return decodeURIComponent(s.replace(/\+/g, ' '));
- };
- var match;
- while (match = r.exec(window.location.search.substring(1)))
- this[decodeURI(match[1])] = decodeURI(match[2]);
- this.useMSE = this.useMSE == '1' || this.useMSE == 'true';
- this.usePrefixedEME =
- this.usePrefixedEME == '1' || this.usePrefixedEME == 'true';
-};
« no previous file with comments | « chrome/test/data/media/eme_player_js/prefixed_widevine_player.js ('k') | chrome/test/data/media/eme_player_js/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698