Commit f3a2eba3 authored by ncbray@google.com's avatar ncbray@google.com

Remove dead NaCl tests and re-enabled fixed tests.

BUG= none
TEST= none

Review URL: https://chromiumcodereview.appspot.com/10762009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145907 0039d316-1c4b-4281-b951-d872f2087c98
parent d866800a
......@@ -38,34 +38,11 @@ def Main(args):
# See http://code.google.com/p/nativeclient/issues/detail?id=2124
# TODO(mseaborn): Reenable when this issue is resolved.
tests_to_disable.append('run_ppapi_ppb_var_browser_test')
# The behavior of the URLRequest changed slightly and this test needs to be
# updated. http://code.google.com/p/chromium/issues/detail?id=94352
tests_to_disable.append('run_ppapi_ppb_url_request_info_browser_test')
# This test failed and caused the build's gatekeep to close the tree.
# http://code.google.com/p/chromium/issues/detail?id=96434
tests_to_disable.append('run_ppapi_example_post_message_test')
# These tests are flakey on the chrome waterfall and need to be looked at.
# TODO(bsy): http://code.google.com/p/nativeclient/issues/detail?id=2509
tests_to_disable.append('run_pm_redir_stderr_fg_0_chrome_browser_test')
tests_to_disable.append('run_pm_redir_stderr_bg_0_chrome_browser_test')
tests_to_disable.append('run_pm_redir_stderr_bg_1000_chrome_browser_test')
tests_to_disable.append('run_pm_redir_stderr_bg_1000000_chrome_browser_test')
# http://code.google.com/p/nativeclient/issues/detail?id=2511
tests_to_disable.append('run_ppapi_ppb_image_data_browser_test')
# Font API is only exported to trusted plugins now, and this test should be
# removed.
tests_to_disable.append('run_ppapi_example_font_test')
# TODO(ncbray) why did these tests flake?
# http://code.google.com/p/nativeclient/issues/detail?id=2230
# TODO(ncbray) are these tests stable?
tests_to_disable.extend([
'run_pm_manifest_file_chrome_browser_test',
'run_srpc_basic_chrome_browser_test',
'run_srpc_hw_data_chrome_browser_test',
'run_srpc_hw_chrome_browser_test',
'run_srpc_manifest_file_chrome_browser_test',
'run_srpc_nameservice_chrome_browser_test',
'run_srpc_nrd_xfer_chrome_browser_test',
'run_no_fault_pm_nameservice_chrome_browser_test',
'run_fault_pm_nameservice_chrome_browser_test',
'run_fault_pq_os_pm_nameservice_chrome_browser_test',
......
......@@ -43,7 +43,6 @@ nonvariant_test_scons_files = [
'tests/ppapi_browser/ppb_pdf/nacl.scons',
'tests/ppapi_browser/ppb_scrollbar/nacl.scons',
'tests/ppapi_browser/ppb_url_loader/nacl.scons',
'tests/ppapi_browser/ppb_url_request_info/nacl.scons',
'tests/ppapi_browser/ppb_var/nacl.scons',
'tests/ppapi_browser/ppb_widget/nacl.scons',
'tests/ppapi_browser/ppp_input_event/nacl.scons',
......
# -*- python -*-
# Copyright 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can
# be found in the LICENSE file.
# A way to build the nexe as a trusted plugin to validate directly
# against Chrome on Linux using
# --register-pepper-plugins="/path/to/libppapi_ppb_file_system.so;application/x-nacl"
# http://localhost:5103/scons-out/nacl-x86-../staging/ppapi_ppb_file_system.html
Import('env')
if env.Bit('linux'):
env['COMPONENT_STATIC'] = False # Build a .so, not a .a
env.Append(CFLAGS=['-std=c99'])
sources = ['ppapi_ppb_urlloader.cc']
libs = ['imc',
'gio',
'pthread' ]
ppapi_geturl = env.ComponentLibrary('ppapi_ppb_urlloader',
sources,
EXTRA_LIBS=libs,
no_import_lib=True)
# -*- python -*-
# Copyright (c) 2012 The Native Client 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_url_request_info')
nexe = env.ProgramNameForNmf('ppapi_ppb_url_request_info')
env.Alias('ppapi_ppb_url_request_info${PROGSUFFIX}',
[ '$STAGING_DIR/%s${PROGSUFFIX}' % nexe ])
ppapi_ppb_url_request_info_nexe = env.ComponentProgram(
nexe,
[ 'ppapi_ppb_url_request_info.cc' ],
EXTRA_LIBS=['${PPAPI_LIBS}',
'ppapi_test_lib',
'platform', # for CHECK
'pthread',
'gio',
])
env.Publish(nexe, 'run',
['ppapi_ppb_url_request_info.html',
'ppapi_ppb_url_request_info.js'])
node = env.PPAPIBrowserTester(
'ppapi_ppb_url_request_info_browser_test.out',
url='ppapi_ppb_url_request_info.html',
nmf_names=['ppapi_ppb_url_request_info'],
files=env.ExtractPublishedFiles(nexe),
browser_flags=['--enable-pepper-testing'])
# This test is being deprecated and is no longer part of chrome_browser_tests
# that are run automatically during nacl_intergration on the chrome bots.
# It is still around for reference when fixing and porting TestAppendFileToBody.
# see crbug.com/110242.
env.AddNodeToTestSuite(node,
['chrome_browser_tests'],
'run_ppapi_ppb_url_request_info_browser_test',
is_broken=True)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<!-- Copyright (c) 2011 Google Inc. All rights reserved. -->
<head>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<META HTTP-EQUIV="Expires" CONTENT="-1" />
<script type="text/javascript" src="nacltest.js"></script>
<script type="text/javascript" src="ppapi_ppb_url_request_info.js"></script>
<title>PPAPI PPB_URLRequestInfo Test</title>
</head>
<body>
<h1>PPAPI PPB_URLRequestInfo Test</h1>
<embed type="application/x-nacl" id="test_nexe"
name="nacl_module"
src="ppapi_ppb_url_request_info.nmf"
width="0" height="0" />
<script type="text/javascript">
//<![CDATA[
var tester = new Tester();
setupTests(tester, $('test_nexe'));
tester.waitFor($('test_nexe'));
tester.run();
//]]>
</script>
</body>
</html>
// 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.
function setupTests(tester, plugin) {
function addTest(test_name) {
tester.addAsyncTest('PPB_URLRequestInfo::' + test_name, function(test) {
test.expectMessageSequence(plugin, [test_name + ':PASSED']);
plugin.postMessage(test_name);
});
}
addTest("TestCreate");
addTest("TestIsURLRequestInfo");
addTest("TestSetProperty");
addTest("TestAppendDataToBody");
// TODO(elijahtaylor): enable when crbug.com/90878 is fixed.
//addTest("TestAppendFileToBody");
addTest("TestStress");
}
# -*- python -*-
# Copyright (c) 2012 The Native Client 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 is a Pepper font example from ppapi/examples/font.
Import('env')
env.Prepend(CPPDEFINES=['XP_UNIX'])
env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
'ppapi_example_font/')
# Adjust compiler flags to the more forgiving standards used in
# ppapi/examples/*.
env.FilterOut(CCFLAGS=['-Werror', '-pedantic'])
env.Append(CCFLAGS=['-Wformat=0'])
nexe_name = env.ProgramNameForNmf('ppapi_example_font')
obj = env.ComponentObject(
'simple_font',
'$SOURCE_ROOT/ppapi/examples/font/simple_font.cc'
)
nexe = env.ComponentProgram(nexe_name, [obj],
EXTRA_LIBS=['${PPAPI_LIBS}', 'ppapi_cpp'])
# Note that the html is required to run this program.
env.Publish(nexe_name, 'run',
['ppapi_example_font.html'])
test = env.PPAPIBrowserTester('ppapi_example_font_test.out',
url='ppapi_example_font.html',
nmf_names=['ppapi_example_font'],
files=env.ExtractPublishedFiles(nexe_name))
env.AddNodeToTestSuite(test,
['chrome_browser_tests'],
'run_ppapi_example_font_test',
is_broken=env.PPAPIBrowserTesterIsBroken())
<!--
Copyright 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.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<script type="text/javascript" src="nacltest.js"></script>
<title>Native Client PPAPI Font Example</title>
</head>
<body>
<h1>Native Client PPAPI Font Example</h1>
<div>
<embed id="naclModule"
name="naclModule"
width=400 height=400
src="ppapi_example_font.nmf"
basic_tests="1"
stress_tests="0"
style="background-color:gray"
type="application/x-nacl" />
</div>
<p>The example works if you see (a) large Arabic script and (b) 4 font
samples (default, serif, sans serif, and monospace)
<script type="text/javascript">
//<![CDATA[
function setupTests(tester, plugin) {
// The PPAPI font examples does all its work in DidChangeView, so we just
// verify that it loaded successfully by inserting a dummy test.
// This only tests that DidChangeView completed successfully; we have no
// automated way of checking that it actually plotted the fonts.
tester.addAsyncTest('DummyTestToEnsureThatModuleCompletedLoading',
function(status) { status.pass(); });
}
var tester = new Tester();
setupTests(tester, $('naclModule'));
tester.waitFor($('naclModule'));
tester.run();
//]]>
</script>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment