| OLD | NEW |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 | 7 |
| 8 from gpu_tests import gpu_integration_test | 8 from gpu_tests import gpu_integration_test |
| 9 from gpu_tests import gpu_process_expectations | 9 from gpu_tests import gpu_process_expectations |
| 10 from gpu_tests import path_util | 10 from gpu_tests import path_util |
| 11 | 11 |
| 12 data_path = os.path.join( | 12 data_path = os.path.join( |
| 13 path_util.GetChromiumSrcDir(), 'content', 'test', 'data') | 13 path_util.GetChromiumSrcDir(), 'content', 'test', 'data') |
| 14 | 14 |
| 15 test_harness_script = r""" | 15 test_harness_script = r""" |
| 16 var domAutomationController = {}; | 16 var domAutomationController = {}; |
| 17 domAutomationController._finished = false; | 17 domAutomationController._finished = false; |
| 18 domAutomationController.setAutomationId = function(id) {} | |
| 19 domAutomationController.send = function(msg) { | 18 domAutomationController.send = function(msg) { |
| 20 domAutomationController._finished = true; | 19 domAutomationController._finished = true; |
| 21 } | 20 } |
| 22 | 21 |
| 23 window.domAutomationController = domAutomationController; | 22 window.domAutomationController = domAutomationController; |
| 24 | 23 |
| 25 function GetDriverBugWorkarounds() { | 24 function GetDriverBugWorkarounds() { |
| 26 var query_result = document.querySelector('.workarounds-list'); | 25 var query_result = document.querySelector('.workarounds-list'); |
| 27 var browser_list = [] | 26 var browser_list = [] |
| 28 for (var i=0; i < query_result.childElementCount; i++) | 27 for (var i=0; i < query_result.childElementCount; i++) |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 'WEBKIT_WEBGL_lose_context', | 563 'WEBKIT_WEBGL_lose_context', |
| 565 ] | 564 ] |
| 566 tab = self.tab | 565 tab = self.tab |
| 567 for ext in ext_list: | 566 for ext in ext_list: |
| 568 if tab.EvaluateJavaScript('!gl_context.getExtension("' + ext + '")'): | 567 if tab.EvaluateJavaScript('!gl_context.getExtension("' + ext + '")'): |
| 569 self.fail("Expected " + ext + " support") | 568 self.fail("Expected " + ext + " support") |
| 570 | 569 |
| 571 def load_tests(loader, tests, pattern): | 570 def load_tests(loader, tests, pattern): |
| 572 del loader, tests, pattern # Unused. | 571 del loader, tests, pattern # Unused. |
| 573 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) | 572 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) |
| OLD | NEW |