Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body,...
Transcript of Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body,...
![Page 1: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/1.jpg)
Web Platform TestingLatest news
![Page 3: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/3.jpg)
Web Platform Testing Discussion
![Page 4: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/4.jpg)
People & organizations
![Page 5: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/5.jpg)
James Graham
![Page 6: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/6.jpg)
https://www.youtube.com/watch?v=6ZvCU0dht50#t=5717
![Page 7: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/7.jpg)
Goal:Improve interoperability
![Page 8: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/8.jpg)
The web-platform-tests testsuite● 60 specifications
● 3700 test files
● 210,000 test results
![Page 9: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/9.jpg)
https://github.com/w3c/web-platform-tests
![Page 10: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/10.jpg)
Web-platform-tests infrastructure
● testharness.js
● wptserve
● http://w3c-test.org/tools/runner/index.html
● wptrunner
![Page 11: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/11.jpg)
<!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>
![Page 13: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/13.jpg)
wptserve
● python web server
● self-hosting
● enables control of server side of tests
● runs locally
![Page 14: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/14.jpg)
wptserve demo
![Page 15: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/15.jpg)
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
![Page 16: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/16.jpg)
![Page 17: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/17.jpg)
demo of in-browser runner
![Page 18: Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},](https://reader035.fdocuments.in/reader035/viewer/2022062504/5b008e3a7f8b9a89598cca5e/html5/thumbnails/18.jpg)
demo of wptrunner