commit | 4f81411c518737917aa298ea2ad954c9484af5b9 | [log] [tgz] |
---|---|---|
author | achristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Wed Jun 13 00:27:15 2018 +0000 |
committer | achristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Wed Jun 13 00:27:15 2018 +0000 |
tree | 5aeac27d8c237fda44878abd14d013212e0e06da | |
parent | 04a3b22f785f3a53ad1b3386771cfba9c1860c7d [diff] |
Import the 2.0.0 version of Khronos WebGL conformance suite https://bugs.webkit.org/show_bug.cgi?id=181293 <rdar://problem/40654103> Patch by Justin Fan <justin_fan@apple.com> on 2018-06-07 Reviewed by Dean Jackson. Original description and patch by Zan Dobersek <zdobersek@igalia.com>. Retrying patch with up-to-date revision of conformance suite: "Import the 2.0.0 version of the WebGL conformance suite that's maintained under the Khronos organization on GitHub: https://github.com/KhronosGroup/WebGL.git The following revision of this repository has been used for importing: 8ea92581353d18f50d25159489897ae634eb23b1 For importing purposes, the generate-webgl-tests.py script is modified to import tests at version 2.0.0 or below. 2.0 is now used as the default version for importing purposes. Additionally, the GreaterThanOrEqualToVersion function is fixed to correctly compare 2.x versions against 1.x. The following generate-webgl-tests.py invocation was used: $ python generate-webgl-tests.py -e -w ~/WebGL/conformance-suites/2.0.0 The 2.0.0 version of the conformance suite is composed of three parts: - tests under conformance/ cover WebGL1 functionality, - tests under conformance2/ cover WebGL2 functionality, - tests under deqp/ are a port of the dEQP suite. webkit-webgl-test-harness.js file is added under webgl/2.0.0/resources/ to properly integrate the imported tests with the WebKit testing facilities. The complete suite is for now skipped on all platforms. WebGL1 tests should be passing in majority, with failures in that part of the suite mirroring the ones experienced in the current 1.0.2 and 1.0.3 suites. The WebGL2 support is still incomplete, and the conformance2/ pass rate will reflect that. dEQP in majority utilizes WebGL2, so the pass rate is similarly poor. List of imported conformance suite files is omitted for brevity." * TestExpectations: Skip the WebGL 1 (conformance) and WebGL 2 (conformance2) tests * webgl/2.0.0/conformance: Added. * webgl/2.0.0/conformance2: Added. * webgl/2.0.0/deqp: Added. * webgl/2.0.0/resources: Added. * webgl/2.0.0/resources/webkit-webgl-test-harness.js: (window.layoutTestController.window.console.log): (window.layoutTestController.window.console.error): (log): (window.webglTestHarness.reportResults): (window.webglTestHarness.notifyFinished): * webgl/generate-webgl-tests.py: (GreaterThanOrEqualToVersion): * webgl/resources/js-test-pre.js: (window.console.log): (window.console.error): (initNonKhronosFramework): (this.initTestingHarness): (nonKhronosFrameworkNotifyDone): (reportTestResultsToHarness): (notifyFinishedToHarness): (_logToConsole): (enableJSTestPreVerboseLogging): (description): (_addSpan): (debug): (escapeHTML): (testPassed): (testFailed): (areArraysEqual): (isMinusZero): (isResultCorrect): (stringify): (evalAndLog): (shouldBe): (shouldNotBe): (shouldBeTrue): (shouldBeFalse): (shouldBeNaN): (shouldBeNull): (shouldBeEqualToString): (shouldEvaluateTo): (shouldBeNonZero): (shouldBeNonNull): (shouldBeUndefined): (shouldBeDefined): (shouldBeGreaterThanOrEqual): (expectTrue): (shouldThrow): (assertMsg): (gc.gcRec): (gc): (finishTest): * webgl/resources/webgl-test-harness.js: (log): (try.request.onreadystatechange): (loadTextFileAsynchronous): (getMajorVersion): (getURLWithOptions): (greaterThanOrEqualToVersion): (copyObject): (toCamelCase): (getFileListImpl): (getFileList): (FilterURL): (TestFile): (Test): (TestHarness): (TestHarness.prototype.addFiles_): (TestHarness.prototype.runTests): (TestHarness.prototype.setTimeout): (TestHarness.prototype.clearTimeout): (TestHarness.prototype.startNextTest): (TestHarness.prototype.startTest): (TestHarness.prototype.getTest): (TestHarness.prototype.reportResults): (TestHarness.prototype.dequeTest): (TestHarness.prototype.notifyFinished): (TestHarness.prototype.timeout): (TestHarness.prototype.setTimeoutDelay): (WebGLTestHarnessModule): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@232783 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit is a cross-platform web browser engine. On iOS and macOS, it powers Safari, Mail, iBooks, and many other applications.
Visit WebKit Feature Status page to see which Web API has been implemented, in development, or under consideration.
On macOS, download Safari Technology Preview to test the latest version of WebKit. On Linux, download Epiphany Technology Preview. On Windows, you'll have to build it yourself.
Once your bug is filed, you will receive email when it is updated at each stage in the bug life cycle. After the bug is considered fixed, you may be asked to download the latest nightly and confirm that the fix works for you.
On Windows, follow the instructions on our website.
Run the following command to clone WebKit's Git SVN repository:
git clone git://git.webkit.org/WebKit.git WebKit
If you want to be able to commit changes to the repository, or just want to check out branches that aren’t contained in WebKit.git, you will need track WebKit's Subversion repository. You can run the following command to configure this and other options of the new Git clone for WebKit development.
Tools/Scripts/webkit-patch setup-git-clone
For information about this, and other aspects of using Git with WebKit, read the wiki page.
If you don‘t want to use Git, run the following command to check out WebKit’s Subversion repository:
svn checkout https://svn.webkit.org/repository/webkit/trunk WebKit
Install Xcode and its command line tools if you haven't done so already:
xcode-select --install
Run the following command to build a debug build with debugging symbols and assertions:
Tools/Scripts/build-webkit --debug
For performance testing, and other purposes, use --release
instead.
You can open WebKit.xcworkspace
to build and debug WebKit within WebKit.
If you don't use a custom build location in Xcode preferences, you have to update the workspace settings to use WebKitBuild
directory. In menu bar, choose File > Workspace Settings, then click the Advanced button, select “Custom”, “Relative to Workspace”, and enter WebKitBuild
for both Products and Intermediates.
The first time after you install a new Xcode, you will need to run the following command to enable Xcode to build command line tools for iOS Simulator:
sudo Tools/Scripts/configure-xcode-for-ios-development
Without this step, you will see the error message: “target specifies product type ‘com.apple.product-type.tool’, but there’s no such product type for the ‘iphonesimulator’ platform.
” when building target JSCLLIntOffsetsExtractor
of project JavaScriptCore
.
Run the following command to build a debug build with debugging symbols and assertions for iOS:
Tools/Scripts/build-webkit --debug --ios-simulator.
For production builds:
cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja ninja sudo ninja install
For development builds:
Tools/gtk/install-dependencies Tools/Scripts/update-webkitgtk-libs Tools/Scripts/build-webkit --gtk --debug
For more information on building WebKitGTK+, see the wiki page.
For production builds:
cmake -DPORT=WPE -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja ninja sudo ninja install
For development builds:
Tools/wpe/install-dependencies Tools/Scripts/update-webkitwpe-libs Tools/Scripts/build-webkit --wpe --debug
For building WebKit on Windows, see the wiki page.
Run the following command to launch Safari with your local build of WebKit:
Tools/Scripts/run-safari --debug
The run-safari
script sets the DYLD_FRAMEWORK_PATH
environment variable to point to your build products, and then launches /Applications/Safari.app
. DYLD_FRAMEWORK_PATH
tells the system loader to prefer your build products over the frameworks installed in /System/Library/Frameworks
.
To run other applications with your local build of WebKit, run the following command:
Tools/Scripts/run-webkit-app <application-path>
Run the following command to launch iOS simulator with your local build of WebKit:
run-safari --debug --ios-simulator
In both cases, if you have built release builds instead, use --release
instead of --debug
.
If you have a development build, you can use the run-minibrowser script, e.g.:
run-minibrowser --debug --wpe
Pass one of --gtk
, --jsc-only
, or --wpe
to indicate the port to use.
Congratulations! You’re up and running. Now you can begin coding in WebKit and contribute your fixes and new features to the project. For details on submitting your code to the project, read Contributing Code.