| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/test/layout_browsertest.h" | |
| 6 | |
| 7 namespace content { | |
| 8 | |
| 9 class AudioLayoutTest : public InProcessBrowserLayoutTest { | |
| 10 protected: | |
| 11 AudioLayoutTest() : InProcessBrowserLayoutTest( | |
| 12 base::FilePath(), base::FilePath().AppendASCII("media")) { | |
| 13 } | |
| 14 }; | |
| 15 | |
| 16 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructorPreload) { | |
| 17 RunLayoutTest("audio-constructor-preload.html"); | |
| 18 } | |
| 19 | |
| 20 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructor) { | |
| 21 RunLayoutTest("audio-constructor.html"); | |
| 22 } | |
| 23 | |
| 24 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructorSrc) { | |
| 25 RunLayoutTest("audio-constructor-src.html"); | |
| 26 } | |
| 27 | |
| 28 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioDataUrl) { | |
| 29 RunLayoutTest("audio-data-url.html"); | |
| 30 } | |
| 31 | |
| 32 // The test fails since there is no real audio device on the build bots to get | |
| 33 // the ended event fired. Should pass once we run it on bots with audio devices. | |
| 34 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, DISABLED_AudioGarbageCollect) { | |
| 35 RunLayoutTest("audio-garbage-collect.html"); | |
| 36 } | |
| 37 | |
| 38 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioNoInstalledEngines) { | |
| 39 RunLayoutTest("audio-no-installed-engines.html"); | |
| 40 } | |
| 41 | |
| 42 #if defined(OS_CHROMEOS) && defined(USE_AURA) | |
| 43 // http://crbug.com/115530 | |
| 44 #define MAYBE_AudioOnlyVideoIntrinsicSize DISABLED_AudioOnlyVideoIntrinsicSize | |
| 45 #else | |
| 46 #define MAYBE_AudioOnlyVideoIntrinsicSize AudioOnlyVideoIntrinsicSize | |
| 47 #endif | |
| 48 | |
| 49 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MAYBE_AudioOnlyVideoIntrinsicSize) { | |
| 50 RunLayoutTest("audio-only-video-intrinsic-size.html"); | |
| 51 } | |
| 52 | |
| 53 // http://crbug.com/167640 | |
| 54 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, DISABLED_AudioPlayEvent) { | |
| 55 RunLayoutTest("audio-play-event.html"); | |
| 56 } | |
| 57 | |
| 58 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaCanPlayWavAudio) { | |
| 59 RunLayoutTest("media-can-play-wav-audio.html"); | |
| 60 } | |
| 61 | |
| 62 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaDocumentAudioSize) { | |
| 63 RunLayoutTest("media-document-audio-size.html"); | |
| 64 } | |
| 65 | |
| 66 } // namespace content | |
| OLD | NEW |