| 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);
|
| }
|
| ]);
|
|
|