summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client/tests/ppapi_browser/ppb_fullscreen/nacl.scons
blob: c4b3262bcefcc5ebe6230bf89aad3909a35c9a9f (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
40
41
42
43
44
45
46
# -*- python -*-
# Copyright (c) 2011 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.
#
# This test uses ppapi_test_lib.

Import('env')

env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
                     'ppb_fullscreen')

nexe = 'ppapi_ppb_fullscreen_%s' % env.get('TARGET_FULLARCH')
env.Alias('ppapi_ppb_fullscreen${PROGSUFFIX}',
          [ '$STAGING_DIR/%s${PROGSUFFIX}' % nexe ])

ppapi_ppb_url_request_info_nexe = env.ComponentProgram(
    nexe,
    [ 'ppapi_ppb_fullscreen.cc' ],
    EXTRA_LIBS=['${PPAPI_LIBS}',
                 'ppapi_test_lib',
                 'platform',  # for CHECK
                 'pthread',
                 'gio',
                 ])

env.Publish(nexe, 'run',
            ['ppapi_ppb_fullscreen.html',
             'ppapi_ppb_fullscreen.js'])

node = env.PPAPIBrowserTester('ppapi_ppb_fullscreen_browser_test.out',
                              nmfs=['${TEST_DIR}/ppapi_ppb_fullscreen.nmf'],
                              url='ppapi_ppb_fullscreen.html',
                              files=env.ExtractPublishedFiles(nexe),
                              browser_flags=['--enable-pepper-testing'])

# Fatal Error on Mac:
# ERROR:render_widget_host_view_mac.mm(344)] Not implemented reached in virtual
# void RenderWidgetHost ViewMac::InitAsFullscreen(RenderWidgetHostView *)Full
# screen not implemented on Mac
env.AddNodeToTestSuite(node,
                       ['chrome_browser_tests'],
                       'run_ppapi_ppb_fullscreen_browser_test',
                       is_broken=(env.PPAPIBrowserTesterIsBroken() or
                                  env.Bit('host_mac')))