1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26

content / test / gpu / gpu_tests / webgl_test_util.py [blame]

# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from __future__ import print_function

import os

import gpu_path_util

conformance_relcomps = ('third_party', 'webgl', 'src', 'sdk', 'tests')

extensions_relcomps = ('content', 'test', 'data', 'gpu')

conformance_relpath = os.path.join(*conformance_relcomps)
extensions_relpath = os.path.join(*extensions_relcomps)
conformance_path = os.path.join(gpu_path_util.CHROMIUM_SRC_DIR,
                                conformance_relpath)

# These URL prefixes are needed because having more than one static
# server dir is causing the base server directory to be moved up the
# directory hierarchy.
url_prefixes_to_trim = [
    '/'.join(conformance_relcomps) + '/',
    '/'.join(extensions_relcomps) + '/',
]