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

Side by Side Diff: content/browser/audio_browsertest.cc

Issue 10941011: Rewrite layout_browsertests to use content_shell --dump-render-tree to execute layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/layout_browsertest.h" 5 #include "content/test/layout_browsertest.h"
6 6
7 class AudioLayoutTest : public InProcessBrowserLayoutTest { 7 class AudioLayoutTest : public InProcessBrowserLayoutTest {
8 protected: 8 protected:
9 AudioLayoutTest() : InProcessBrowserLayoutTest( 9 AudioLayoutTest() : InProcessBrowserLayoutTest(
10 FilePath(), FilePath().AppendASCII("media")) { 10 FilePath(), FilePath().AppendASCII("media")) {
11 } 11 }
12 virtual ~AudioLayoutTest() {}
13
14 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
15 InProcessBrowserLayoutTest::SetUpInProcessBrowserTestFixture();
16 AddResourceForLayoutTest(FilePath().AppendASCII("media"),
17 FilePath().AppendASCII("content"));
18 AddResourceForLayoutTest(FilePath().AppendASCII("media"),
19 FilePath().AppendASCII("media-file.js"));
20 AddResourceForLayoutTest(FilePath().AppendASCII("media"),
21 FilePath().AppendASCII("video-test.js"));
22 }
23 }; 12 };
24 13
25 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructorPreload) { 14 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructorPreload) {
26 RunLayoutTest("audio-constructor-preload.html"); 15 RunLayoutTest("audio-constructor-preload.html");
27 } 16 }
28 17
29 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructor) { 18 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructor) {
30 RunLayoutTest("audio-constructor.html"); 19 RunLayoutTest("audio-constructor.html");
31 } 20 }
32 21
(...skipping 30 matching lines...) Expand all
63 RunLayoutTest("audio-play-event.html"); 52 RunLayoutTest("audio-play-event.html");
64 } 53 }
65 54
66 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaCanPlayWavAudio) { 55 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaCanPlayWavAudio) {
67 RunLayoutTest("media-can-play-wav-audio.html"); 56 RunLayoutTest("media-can-play-wav-audio.html");
68 } 57 }
69 58
70 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaDocumentAudioSize) { 59 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaDocumentAudioSize) {
71 RunLayoutTest("media-document-audio-size.html"); 60 RunLayoutTest("media-document-audio-size.html");
72 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698