Top Banner
Web Platform Testing Latest news
18

Latest news - World Wide Web Consortium... test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

May 20, 2018

Download

Documents

vandien
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

Web Platform TestingLatest news

Page 2: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

Michael[tm] Smith

W3C Deputy Director

[email protected] Tokyo, Japan

@sideshowbarker

Page 4: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

People & organizations

Page 5: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

James Graham

Page 7: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

Goal:Improve interoperability

Page 8: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

The web-platform-tests testsuite● 60 specifications

● 3700 test files

● 210,000 test results

Page 10: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

Web-platform-tests infrastructure

● testharness.js

● wptserve

● http://w3c-test.org/tools/runner/index.html

● wptrunner

Page 11: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

<!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 12: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

http://w3c-test.org

Page 13: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

wptserve

● python web server

● self-hosting

● enables control of server side of tests

● runs locally

Page 14: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

wptserve demo

Page 15: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

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... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},
Page 17: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

demo of in-browser runner

Page 18: Latest news - World Wide Web Consortium... <div id="log"></div> <script> test(function() {assert_equals(document.body, document.getElementsByTagName("body")[0]))},

demo of wptrunner