blob: 75a6f5a7135f7c0bb4df694b09cb38ec7e530d70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) 2010 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.
#include <string>
#include "build/build_config.h"
#include "chrome/test/ui/ui_test.h"
#include "net/base/net_util.h"
class GPUTest : public UITest {
protected:
GPUTest() {
}
virtual void SetUp() {
UITest::SetUp();
gpu_test_dir_ = test_data_directory_.AppendASCII("gpu");
}
FilePath gpu_test_dir_;
};
// TODO(apatrick): Other pending changes will fix this for mac.
#if defined(OS_MACOSX)
#define MAYBE_UITestLaunchedWithOSMesa FAILS_UITestLaunchedWithOSMesa
#else
#define MAYBE_UITestLaunchedWithOSMesa UITestLaunchedWithOSMesa
#endif
TEST_F(GPUTest, MAYBE_UITestLaunchedWithOSMesa) {
// Check the webgl test reports success and that the renderer was OSMesa.
// We use OSMesa for tests in order to get consistent results across a
// variety of boxes.
NavigateToURL(
net::FilePathToFileURL(gpu_test_dir_.AppendASCII("webgl.html")));
EXPECT_EQ(std::wstring(L"SUCCESS: Mesa OffScreen"), GetActiveTabTitle());
}
|