latest news - world wide web consortium... test(function() {assert_equals(document.body,...
TRANSCRIPT
Web Platform TestingLatest news
Web Platform Testing Discussion
People & organizations
James Graham
https://www.youtube.com/watch?v=6ZvCU0dht50#t=5717
Goal:Improve interoperability
The web-platform-tests testsuite● 60 specifications
● 3700 test files
● 210,000 test results
https://github.com/w3c/web-platform-tests
Web-platform-tests infrastructure
● testharness.js
● wptserve
● http://w3c-test.org/tools/runner/index.html
● wptrunner
<!doctype html><title>Example testharness.js Tests</title><script src="testharness.js"></script><script src="testharnessreport.js"></script><div id="log"></div>
<script>test(function() { assert_equals(document.body, document.getElementsByTagName("body")[0])) }, "document.body test")
var t = async_test("Load event fires")onload = t.step_func(function() {t.done()})</script>
wptserve
● python web server
● self-hosting
● enables control of server side of tests
● runs locally
wptserve demo
http://w3c-test.org/tools/runner/index.html
● in-browser test runner
● simple, nothing to install
● run the tests in any browser
● not “production quality”/CI-integratable
demo of in-browser runner
demo of wptrunner