Commit c35c0321 authored by zhenw's avatar zhenw Committed by Commit bot

Fix flaky DevToolsClientBackendTest

testGetUpdatedInspectableContexts should only run when tab control is supported.

BUG=452277

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

Cr-Commit-Position: refs/heads/master@{#314689}
parent 482aa01d
......@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry import decorators
from telemetry.core.backends.chrome_inspector import devtools_client_backend
from telemetry.core.backends.chrome_inspector import devtools_http
from telemetry.unittest_util import browser_test_case
......@@ -24,6 +25,7 @@ class DevToolsClientBackendTest(browser_test_case.BrowserTestCase):
def testIsAlive(self):
self.assertTrue(self._devtools_client.IsAlive())
@decorators.Enabled('has tabs')
def testGetUpdatedInspectableContexts(self):
self._browser.tabs.New()
c1 = self._devtools_client.GetUpdatedInspectableContexts()
......
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