<commit_before># Copyright 2015 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.

"""
Recipe for running WebView CTS using system WebView.
"""
DEPS = [
  'adb',
  'bot_update',
  'chromium',
  'chromium_android',
  'file',
  'gclient',
  'recipe_engine/json',
  'recipe_engine/raw_io',
  'recipe_engine/path',
  'recipe_engine/properties',
  'recipe_engine/python',
  'recipe_engine/step',
  'test_utils',
]

REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'

# TODO(hush): Put the CTS zip file in the google storage
# and use gs_utils to download.
CTS_FILE_URL = "https://dl.google.com/dl/android/cts/android-cts-5.1_r1-linux_x86-arm.zip"
CTS_FILE_NAME = "android-cts-5.1_r1-linux_x86-arm.zip"
# WebView user agent is changed, and new CTS hasn't been published to reflect
# that.
EXPECTED_FAILURE = {
    'android.webkit.cts.WebSettingsTest': ['testUserAgentString_default']}

WEBVIEW_APK = 'SystemWebView.apk'

def FindTestReportXml(test_output):
  for line in test_output.split('\n'):
    split = line.split('Created xml report file at file://')
    if (len(split) > 1):
      return split[1]

  raise Exception(<commit_msg>Disable flaky Android WebView CTS tests.<commit_after># Copyright 2015 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.

"""
Recipe for running WebView CTS using system WebView.
"""
DEPS = [
  'adb',
  'bot_update',
  'chromium',
  'chromium_android',
  'file',
  'gclient',
  'recipe_engine/json',
  'recipe_engine/raw_io',
  'recipe_engine/path',
  'recipe_engine/properties',
  'recipe_engine/python',
  'recipe_engine/step',
  'test_utils',
]

REPO_URL = 'https://chromium.googlesource.com/chromium/src.git'

# TODO(hush): Put the CTS zip file in the google storage
# and use gs_utils to download.
CTS_FILE_URL = "https://dl.google.com/dl/android/cts/android-cts-5.1_r1-linux_x86-arm.zip"
CTS_FILE_NAME = "android-cts-5.1_r1-linux_x86-arm.zip"
# WebView user agent is changed, and new CTS hasn't been published to reflect
# that.
EXPECTED_FAILURE = {
    'android.webkit.cts.WebSettingsTest': ['testUserAgentString_default'],
    #crbug.com/534643, crbug.com/514474
    'android.webkit.cts.WebViewTest': ['testPageScroll', 'testStopLoading'],
    #crbug.com/514473
    'android.webkit.cts.WebViewSslTest':
        ['testSslErrorProceedResponseNotReusedForDifferentHost']
}

WEBVIEW_APK = 'SystemWebView.apk'

def FindTestReportXml(test_output):
  for line in test_output.split('\n'):
    split = line.split('Created xml report file at file://')
    if (len(split) > 1):
      return split[1]

  raise Exception(
{'fraction_non_alphanumeric': 0.12845705967976712, 'fraction_numerical': 0.018195050946142648, 'mean_word_length': 4.348249027237354, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6031699', 'n_tokens_mistral': 1028, 'n_tokens_neox': 979, 'n_words': 232}