18
Web Platform Testing Latest news

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

  • Upload
    vandien

  • View
    221

  • Download
    3

Embed Size (px)

Citation preview

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

Web Platform TestingLatest news

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

People & organizations

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

James Graham

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

Goal:Improve interoperability

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

http://w3c-test.org

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

wptserve demo

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

demo of in-browser runner

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

demo of wptrunner