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

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

Issue 2152283004: Abort ContextLost.WebGLContextLostFromQuantity if context creation fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import os 4 import os
5 import time 5 import time
6 6
7 from gpu_tests import context_lost_expectations 7 from gpu_tests import context_lost_expectations
8 from gpu_tests import gpu_test_base 8 from gpu_tests import gpu_test_base
9 from gpu_tests import path_util 9 from gpu_tests import path_util
10 10
(...skipping 14 matching lines...) Expand all
25 domAutomationController._succeeded = false; 25 domAutomationController._succeeded = false;
26 domAutomationController._finished = false; 26 domAutomationController._finished = false;
27 27
28 domAutomationController.setAutomationId = function(id) {} 28 domAutomationController.setAutomationId = function(id) {}
29 29
30 domAutomationController.send = function(msg) { 30 domAutomationController.send = function(msg) {
31 msg = msg.toLowerCase() 31 msg = msg.toLowerCase()
32 if (msg == "loaded") { 32 if (msg == "loaded") {
33 domAutomationController._loaded = true; 33 domAutomationController._loaded = true;
34 } else if (msg == "success") { 34 } else if (msg == "success") {
35 domAutomationController._succeeded = true; 35 /* Don't squelch earlier failures! */
36 if (!domAutomationController._finished) {
37 domAutomationController._succeeded = true;
38 }
36 domAutomationController._finished = true; 39 domAutomationController._finished = true;
37 } else { 40 } else {
41 /* Always record failures. */
38 domAutomationController._succeeded = false; 42 domAutomationController._succeeded = false;
39 domAutomationController._finished = true; 43 domAutomationController._finished = true;
40 } 44 }
41 } 45 }
42 46
43 domAutomationController.reset = function() { 47 domAutomationController.reset = function() {
44 domAutomationController._succeeded = false; 48 domAutomationController._succeeded = false;
45 domAutomationController._finished = false; 49 domAutomationController._finished = false;
46 } 50 }
47 51
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 ps, ps.base_dir, self.GetExpectations())) 353 ps, ps.base_dir, self.GetExpectations()))
350 ps.AddStory(WebGLContextLostFromLoseContextExtensionPage( 354 ps.AddStory(WebGLContextLostFromLoseContextExtensionPage(
351 ps, ps.base_dir, self.GetExpectations())) 355 ps, ps.base_dir, self.GetExpectations()))
352 ps.AddStory(WebGLContextLostFromQuantityPage( 356 ps.AddStory(WebGLContextLostFromQuantityPage(
353 ps, ps.base_dir, self.GetExpectations())) 357 ps, ps.base_dir, self.GetExpectations()))
354 ps.AddStory(WebGLContextLostFromSelectElementPage( 358 ps.AddStory(WebGLContextLostFromSelectElementPage(
355 ps, ps.base_dir, self.GetExpectations())) 359 ps, ps.base_dir, self.GetExpectations()))
356 ps.AddStory(WebGLContextLostInHiddenTabPage( 360 ps.AddStory(WebGLContextLostInHiddenTabPage(
357 ps, ps.base_dir, self.GetExpectations())) 361 ps, ps.base_dir, self.GetExpectations()))
358 return ps 362 return ps
OLDNEW
« no previous file with comments | « content/test/data/gpu/webgl.html ('k') | content/test/gpu/gpu_tests/context_lost_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698