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

Side by Side Diff: content/test/gpu/gpu_tests/gpu_process_integration_test.py

Issue 2503453003: Remove all calls to domAutomationController.setAutomationId.
Patch Set: Fix nacl_browsertest_util.cc Created 3 years, 5 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
OLDNEW
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
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__])
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/depth_capture_integration_test.py ('k') | content/test/gpu/gpu_tests/pixel_integration_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698