Commit f088de27 authored by kbr@chromium.org's avatar kbr@chromium.org

Added test expectations for context_lost and suppressed flaky failure.

BUG=392891

Review URL: https://codereview.chromium.org/450493002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287868 0039d316-1c4b-4281-b951-d872f2087c98
parent 83fcce1f
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
import os import os
import time import time
import context_lost_expectations
from telemetry import benchmark as benchmark_module from telemetry import benchmark as benchmark_module
from telemetry.core import exceptions from telemetry.core import exceptions
from telemetry.core import util from telemetry.core import util
...@@ -283,6 +285,10 @@ class WebGLContextLostFromSelectElementPage(page.Page): ...@@ -283,6 +285,10 @@ class WebGLContextLostFromSelectElementPage(page.Page):
class ContextLost(benchmark_module.Benchmark): class ContextLost(benchmark_module.Benchmark):
enabled = True enabled = True
test = _ContextLostValidator test = _ContextLostValidator
def CreateExpectations(self, page_set):
return context_lost_expectations.ContextLostExpectations()
# For the record, this would have been another way to get the pages # For the record, this would have been another way to get the pages
# to repeat. pageset_repeat would be another option. # to repeat. pageset_repeat would be another option.
# options = {'page_repeat': 5} # options = {'page_repeat': 5}
......
# Copyright 2014 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.
from telemetry.page import test_expectations
# Valid expectation conditions are:
#
# Operating systems:
# win, xp, vista, win7, mac, leopard, snowleopard, lion, mountainlion,
# linux, chromeos, android
#
# GPU vendors:
# amd, arm, broadcom, hisilicon, intel, imagination, nvidia, qualcomm,
# vivante
#
# Specific GPUs can be listed as a tuple with vendor name and device ID.
# Examples: ('nvidia', 0x1234), ('arm', 'Mali-T604')
# Device IDs must be paired with a GPU vendor.
class ContextLostExpectations(test_expectations.TestExpectations):
def SetExpectations(self):
# Sample Usage:
# self.Fail('ContextLost.WebGLContextLostFromGPUProcessExit',
# ['mac', 'amd', ('nvidia', 0x1234)], bug=123)
self.Fail('GpuCrash.GPUProcessCrashesExactlyOnce',
['win'], bug=392891)
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