Commit 43afaa6f authored by courage@chromium.org's avatar courage@chromium.org

Revert 272549 "Add test for action_runner.BeginInteraction and a..."

The added test failed on Mac 10.7.

> Add test for action_runner.BeginInteraction and action_runner.EndInteraction.
> 
> BUG=368767
> 
> Review URL: https://codereview.chromium.org/294943006

TBR=nednguyen@google.com

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272560 0039d316-1c4b-4281-b951-d872f2087c98
parent 1b473de3
# 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.core.backends.chrome import tracing_backend
from telemetry.core.timeline import model
from telemetry.page.actions import action_runner as action_runner_module
from telemetry.unittest import tab_test_case
from telemetry.web_perf import timeline_interaction_record as tir_module
class ActionRunnerTest(tab_test_case.TabTestCase):
def testIssuingInteractionRecord(self):
self.Navigate('blank.html')
action_runner = action_runner_module.ActionRunner(None, self._tab)
self._browser.StartTracing(tracing_backend.MINIMAL_TRACE_CATEGORIES)
action_runner.BeginInteraction('TestInteraction', [tir_module.IS_SMOOTH])
action_runner.EndInteraction('TestInteraction', [tir_module.IS_SMOOTH])
trace_data = self._browser.StopTracing()
timeline_model = model.TimelineModel(trace_data)
records = []
renderer_thread = timeline_model.GetRendererThreadFromTab(self._tab)
for event in renderer_thread.async_slices:
if not tir_module.IsTimelineInteractionRecord(event.name):
continue
records.append(tir_module.TimelineInteractionRecord.FromEvent(event))
self.assertEqual(1, len(records),
'Fail to issue the interaction record on tracing timeline.'
' Trace data:\n%s' % repr(trace_data.EventData()))
self.assertEqual('TestInteraction', records[0].logical_name)
self.assertTrue(records[0].is_smooth)
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