def __init__(self, port, options, tests=[]): if len(options.subtests) > 0 and len(tests) != 1: raise ValueError( "Passing one or more subtests requires one and only test argument" ) self._options = options self._port = Host().port_factory.get(port) self._driver = self._create_driver() if self._options.debug: self._build_type = "Debug" elif self._options.release: self._build_type = "Release" else: self._build_type = self._port.default_configuration() common.set_build_types((self._build_type, )) self._programs_path = common.binary_build_path() expectations_file = os.path.join(common.top_level_path(), "Tools", "TestWebKitAPI", "glib", "TestExpectations.json") self._expectations = TestExpectations(self._port.name(), expectations_file, self._build_type) self._tests = self._get_tests(tests) self._disabled_tests = []
def get_all_webkitdom_symbol_files(): static_symbol_files_path = common.top_level_path('Source', 'WebCore', 'bindings', 'gobject') generated_symbol_files_path = common.build_path('DerivedSources', 'webkitdom') symbol_files = [] for header_name in header_name_list_from_gtkdoc_config_file(): # webkitdomdefines.h doesn't have a corresponding symbols file and webkitdom.symbols is a # file containing the expected symbols results. if header_name in ("webkitdom.h", "webkitdomdefines.h"): continue symbol_file = header_name.replace(".h", ".symbols") path = os.path.join(static_symbol_files_path, symbol_file) if os.path.exists(path): symbol_files.append(path) continue path = os.path.join(generated_symbol_files_path, symbol_file) if os.path.exists(path): symbol_files.append(path) continue sys.stderr.write("Could not find symbol file for header: %s\n" % header_name) sys.exit(1) return symbol_files
def _setup_testing_environment(self): self._test_env = self._driver._setup_environ_for_test() self._test_env[ "TEST_WEBKIT_API_WEBKIT2_RESOURCES_PATH"] = common.top_level_path( "Tools", "TestWebKitAPI", "Tests", "WebKit") self._test_env[ "TEST_WEBKIT_API_WEBKIT2_INJECTED_BUNDLE_PATH"] = common.library_build_path( ) self._test_env["WEBKIT_EXEC_PATH"] = self._programs_path
def __init__(self, port, options, tests=[]): self._options = options self._build_type = "Debug" if self._options.debug else "Release" common.set_build_types((self._build_type,)) self._port = Host().port_factory.get(port) self._driver = self._create_driver() self._programs_path = common.binary_build_path() expectations_file = os.path.join(common.top_level_path(), "Tools", "TestWebKitAPI", "glib", "TestExpectations.json") self._expectations = TestExpectations(self._port.name(), expectations_file, self._build_type) self._tests = self._get_tests(tests) self._disabled_tests = []
def get_all_webkitdom_symbol_files(): static_symbol_files_path = common.top_level_path('Source', 'WebCore', 'bindings', 'gobject') generated_symbol_files_path = common.build_path('DerivedSources', 'webkitdom') symbol_files = [] for header_name in header_name_list_from_gtkdoc_config_file(): # webkitdomdefines.h doesn't have a corresponding symbols file and webkitdom.symbols is a # file containing the expected symbols results. if header_name in ("webkitdom.h", "webkitdomdefines.h"): continue symbol_file = header_name.replace(".h", ".symbols") path = os.path.join(static_symbol_files_path, symbol_file) if os.path.exists(path): symbol_files.append(path) continue path = os.path.join(generated_symbol_files_path, symbol_file) if os.path.exists(path): symbol_files.append(path) continue return symbol_files
# # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA import common import glob import os import sys resources_path = common.top_level_path() + "/Source/WebInspectorUI/" inspector_files = \ glob.glob(resources_path + 'UserInterface/*.html') + \ glob.glob(resources_path + 'UserInterface/Base/*.js') + \ glob.glob(resources_path + 'UserInterface/Controllers/*.css') + \ glob.glob(resources_path + 'UserInterface/Controllers/*.js') + \ glob.glob(resources_path + 'UserInterface/Models/*.js') + \ glob.glob(resources_path + 'UserInterface/Protocol/*.js') + \ glob.glob(resources_path + 'UserInterface/Views/*.css') + \ glob.glob(resources_path + 'UserInterface/Views/*.js') + \ glob.glob(resources_path + 'UserInterface/Images/*.png') + \ glob.glob(resources_path + 'UserInterface/Images/*.svg') + \ glob.glob(resources_path + 'UserInterface/External/CodeMirror/*') + \ glob.glob(resources_path + 'Localizations/en.lproj/localizedStrings.js') gresources_file_content = \