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

Unified Diff: chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js

Issue 188253002: Revert of [AudioPlayer] Add test for opening another file from Files.app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « chrome/test/data/extensions/api_test/file_manager_browsertest/background.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js
diff --git a/chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js b/chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js
index 8c04bf177006aff8e5a3c083f2680c0b2a266bf1..0da4d4063c3faad269385386525388852d8d64fa 100644
--- a/chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js
+++ b/chrome/test/data/extensions/api_test/file_manager_browsertest/open_special_types.js
@@ -73,57 +73,25 @@
// Select the song.
function(inAppId) {
appId = inAppId;
-
- // Add an additional audio file.
- addEntries(['local', 'drive'], [ENTRIES.newlyAdded], this.next);
- },
- function(result) {
- chrome.test.assertTrue(result);
callRemoteTestUtil(
'openFile', appId, ['Beautiful Song.ogg'], this.next);
},
- // Wait for the audio player window.
+ // Wait for the audio player.
function(result) {
chrome.test.assertTrue(result);
waitForWindow('audio_player.html').then(this.next);
},
- // Wait for the changes of the player status.
+ // Wait for the audio tag and verify the source.
function(inAppId) {
audioAppId = inAppId;
waitForElement(audioAppId, 'audio-player[playing]').then(this.next);
},
- // Get the source file name.
+ // Get the title tag.
function(element) {
chrome.test.assertEq(
'filesystem:chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/' +
'external' + path + '/Beautiful%20Song.ogg',
element.attributes.currenttrackurl);
-
- // Open another file.
- callRemoteTestUtil(
- 'openFile', appId, ['newly added file.ogg'], this.next);
- },
- // Wait for the changes of the player status.
- function(result) {
- chrome.test.assertTrue(result);
- var query = 'audio-player' +
- '[playing]' +
- '[currenttrackurl$="newly%20added%20file.ogg"]';
- waitForElement(audioAppId, query).then(this.next);
- },
- // Get the source file name.
- function(element) {
- chrome.test.assertEq(
- 'filesystem:chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj/' +
- 'external' + path + '/newly%20added%20file.ogg',
- element.attributes.currenttrackurl);
-
- // Close window
- closeWindowAndWait(audioAppId).then(this.next);
- },
- // Wait for the audio player.
- function(result) {
- chrome.test.assertTrue(result);
checkIfNoErrorsOccured(this.next);
}
]);
« no previous file with comments | « chrome/test/data/extensions/api_test/file_manager_browsertest/background.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698