# Copyright (c) 2013 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.

import os

from telemetry import test
from telemetry.core import util

from measurements import blink_perf


class BlinkPerfAll(test.Test):
  tag = 'all'
  test = blink_perf.BlinkPerfMeasurement

  def CreatePageSet(self, options):
    path = os.path.join(util.GetChromiumSrcDir(),
        'third_party', 'WebKit', 'PerformanceTests')
    return blink_perf.CreatePageSetFromPath(path)

class BlinkPerfAnimation(test.Test):
  tag = 'animation'
  test = blink_perf.BlinkPerfMeasurement

  def CreatePageSet(self, options):
    path = os.path.join(util.GetChromiumSrcDir(),
        'third_party', 'WebKit', 'PerformanceTests', 'Animation')
    return blink_perf.CreatePageSetFromPath(path)

class BlinkPerfWebAnimations(test.Test):
  tag = 'web_animations'
  test = blink_perf.BlinkPerfMeasurement

  def CreatePageSet(self, options):
    path = os.path.join(util.GetChromiumSrcDir(),
        'third_party', 'WebKit', 'PerformanceTests', 'Animation')
    return blink_perf.CreatePageSetFromPath(path)

  def CustomizeBrowserOptions(self, options):
    options.AppendExtraBrowserArgs('--enable-web-animations-css')

# Copyright (c) 2013 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.

import os

from telemetry import test
from telemetry.core import util

from measurements import blink_perf


class BlinkPerfAll(test.Test):
  tag = 'all'
  test = blink_perf.BlinkPerfMeasurement

  def CreatePageSet(self, options):
    path = os.path.join(util.GetChromiumSrcDir(),
        'third_party', 'WebKit', 'PerformanceTests')
    return blink_perf.CreatePageSetFromPath(path)

class BlinkPerfAnimation(test.Test):
  tag = 'animation'
  test = blink_perf.BlinkPerfMeasurement

  def CreatePageSet(self, options):
    path = os.path.join(util.GetChromiumSrcDir(),
        'third_party', 'WebKit', 'PerformanceTests', 'Animation')
    return blink_perf.CreatePageSetFromPath(path)

class BlinkPerfWebAnimations(test.Test):
  tag = 'web_animations'
  test = blink_perf.BlinkPerfMeasurement
  enabled = False  # crbug.com/320042

  def CreatePageSet(self, options):
    path = os.path.join(util.GetChromiumSrcDir(),
        'third_party', 'WebKit', 'PerformanceTests', 'Animation')
    return blink_perf.CreatePageSetFromPath(path)

  def CustomizeBrowserOptions(self, options):
    options.AppendExtraBrowserArgs('--enable-web-animations-css')

Disable web animations benchmark. It is crashing.
Disable web animations benchmark. It is crashing.

BUG=320042
NOTRY=True
TBR=dtu@chromium.org

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

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@235452 0039d316-1c4b-4281-b951-d872f2087c98
