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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py

Issue 14067007: Remove 3D_RENDERING define from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased, retrying the bots Created 7 years, 8 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
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/base.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 result_directories = set(TestWebKitPort(symbols_string=symbols_string)._ skipped_tests_for_unsupported_features(test_list=['mathml/foo.html'])) 468 result_directories = set(TestWebKitPort(symbols_string=symbols_string)._ skipped_tests_for_unsupported_features(test_list=['mathml/foo.html']))
469 self.assertEqual(result_directories, expected_directories) 469 self.assertEqual(result_directories, expected_directories)
470 470
471 # Test that the nm string parsing actually works: 471 # Test that the nm string parsing actually works:
472 symbols_string = """ 472 symbols_string = """
473 000000000124f498 s __ZZN7WebCore13GraphicsLayer12replaceChildEPS0_S1_E19__PRETTY _FUNCTION__ 473 000000000124f498 s __ZZN7WebCore13GraphicsLayer12replaceChildEPS0_S1_E19__PRETTY _FUNCTION__
474 000000000124f500 s __ZZN7WebCore13GraphicsLayer13addChildAboveEPS0_S1_E19__PRETT Y_FUNCTION__ 474 000000000124f500 s __ZZN7WebCore13GraphicsLayer13addChildAboveEPS0_S1_E19__PRETT Y_FUNCTION__
475 000000000124f670 s __ZZN7WebCore13GraphicsLayer13addChildBelowEPS0_S1_E19__PRETT Y_FUNCTION__ 475 000000000124f670 s __ZZN7WebCore13GraphicsLayer13addChildBelowEPS0_S1_E19__PRETT Y_FUNCTION__
476 """ 476 """
477 # Note 'compositing' is not in the list of skipped directories (hence th e parsing of GraphicsLayer worked): 477 # Note 'compositing' is not in the list of skipped directories (hence th e parsing of GraphicsLayer worked):
478 expected_directories = set(['mathml', 'transforms/3d', 'compositing/webg l', 'fast/canvas/webgl', 'animations/3d', 'webgl', 'mhtml', 'http/tests/canvas/w ebgl', 'fast/css/variables', 'inspector/styles/variables']) 478 expected_directories = set(['mathml', 'compositing/webgl', 'fast/canvas/ webgl', 'webgl', 'mhtml', 'http/tests/canvas/webgl', 'fast/css/variables', 'insp ector/styles/variables'])
479 result_directories = set(TestWebKitPort(symbols_string=symbols_string)._ skipped_tests_for_unsupported_features(test_list=['mathml/foo.html'])) 479 result_directories = set(TestWebKitPort(symbols_string=symbols_string)._ skipped_tests_for_unsupported_features(test_list=['mathml/foo.html']))
480 self.assertEqual(result_directories, expected_directories) 480 self.assertEqual(result_directories, expected_directories)
481 481
482 def test_skipped_directories_for_features(self): 482 def test_skipped_directories_for_features(self):
483 supported_features = ["Accelerated Compositing", "Foo Feature"] 483 supported_features = ["Accelerated Compositing", "Foo Feature"]
484 expected_directories = set(["animations/3d", "transforms/3d"]) 484 expected_directories = set(["animations/3d", "transforms/3d"])
485 port = TestWebKitPort(supported_features=supported_features) 485 port = TestWebKitPort(supported_features=supported_features)
486 port._runtime_feature_list = lambda: supported_features 486 port._runtime_feature_list = lambda: supported_features
487 result_directories = set(port._skipped_tests_for_unsupported_features(te st_list=["animations/3d/foo.html"])) 487 result_directories = set(port._skipped_tests_for_unsupported_features(te st_list=["animations/3d/foo.html"]))
488 self.assertEqual(result_directories, expected_directories) 488 self.assertEqual(result_directories, expected_directories)
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 647
648 port = self.make_port(options=MockOptions(build=False)) 648 port = self.make_port(options=MockOptions(build=False))
649 self.build_called = False 649 self.build_called = False
650 port._build_driver = build_driver_called 650 port._build_driver = build_driver_called
651 port.check_build(False) 651 port.check_build(False)
652 self.assertFalse(self.build_called, None) 652 self.assertFalse(self.build_called, None)
653 653
654 def test_additional_platform_directory(self): 654 def test_additional_platform_directory(self):
655 port = self.make_port(options=MockOptions(additional_platform_directory= ['/tmp/foo'])) 655 port = self.make_port(options=MockOptions(additional_platform_directory= ['/tmp/foo']))
656 self.assertEqual(port.baseline_search_path()[0], '/tmp/foo') 656 self.assertEqual(port.baseline_search_path()[0], '/tmp/foo')
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/base.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698