index.html
14.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="MediaWiki 1.15.5" />
<meta name="keywords" content="Testing/Authoring/" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="/html/wg/wiki/opensearch_desc.php" title="HTML WG Wiki (en)" />
<link rel="alternate" type="application/rss+xml" title="HTML WG Wiki RSS feed" href="/html/wg/wiki/index.php?title=Special:RecentChanges&feed=rss" />
<link rel="alternate" type="application/atom+xml" title="HTML WG Wiki Atom feed" href="/html/wg/wiki/index.php?title=Special:RecentChanges&feed=atom" />
<title>Testing/Authoring/ - HTML WG Wiki</title>
<link rel="stylesheet" href="/html/wg/wiki/skins/common/shared.css?207" type="text/css" media="screen" />
<link rel="stylesheet" href="/html/wg/wiki/skins/common/commonPrint.css?207" type="text/css" media="print" />
<link rel="stylesheet" href="/html/wg/wiki/skins/w3cmonobook/main.css?207" type="text/css" media="screen" />
<!--[if lt IE 5.5000]><link rel="stylesheet" href="/html/wg/wiki/skins/w3cmonobook/IE50Fixes.css?207" type="text/css" media="screen" /><![endif]-->
<!--[if IE 5.5000]><link rel="stylesheet" href="/html/wg/wiki/skins/w3cmonobook/IE55Fixes.css?207" type="text/css" media="screen" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" href="/html/wg/wiki/skins/w3cmonobook/IE60Fixes.css?207" type="text/css" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="/html/wg/wiki/skins/w3cmonobook/IE70Fixes.css?207" type="text/css" media="screen" /><![endif]-->
<link rel="stylesheet" href="/html/wg/wiki/index.php?title=MediaWiki:Common.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000" type="text/css" />
<link rel="stylesheet" href="/html/wg/wiki/index.php?title=MediaWiki:Print.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000" type="text/css" media="print" />
<link rel="stylesheet" href="/html/wg/wiki/index.php?title=MediaWiki:W3cmonobook.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000" type="text/css" />
<link rel="stylesheet" href="/html/wg/wiki/index.php?title=-&action=raw&maxage=18000&gen=css" type="text/css" />
<!--[if lt IE 7]><script type="text/javascript" src="/html/wg/wiki/skins/common/IEFixes.js?207"></script>
<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<script type= "text/javascript">/*<![CDATA[*/
var skin = "w3cmonobook";
var stylepath = "/html/wg/wiki/skins";
var wgArticlePath = "/html/wg/wiki/$1";
var wgScriptPath = "/html/wg/wiki";
var wgScript = "/html/wg/wiki/index.php";
var wgVariantArticlePath = false;
var wgActionPaths = {};
var wgServer = "http://www.w3.org";
var wgCanonicalNamespace = "";
var wgCanonicalSpecialPageName = false;
var wgNamespaceNumber = 0;
var wgPageName = "Testing/Authoring/";
var wgTitle = "Testing/Authoring/";
var wgAction = "view";
var wgArticleId = "423";
var wgIsArticle = true;
var wgUserName = null;
var wgUserGroups = null;
var wgUserLanguage = "en";
var wgContentLanguage = "en";
var wgBreakFrames = false;
var wgCurRevisionId = 11406;
var wgVersion = "1.15.5";
var wgEnableAPI = true;
var wgEnableWriteAPI = true;
var wgSeparatorTransformTable = ["", ""];
var wgDigitTransformTable = ["", ""];
var wgRestrictionEdit = [];
var wgRestrictionMove = [];
/*]]>*/</script>
<script type="text/javascript" src="/html/wg/wiki/skins/common/wikibits.js?207"><!-- wikibits js --></script>
<!-- Head Scripts -->
<script type="text/javascript" src="/html/wg/wiki/skins/common/ajax.js?207"></script>
<script type="text/javascript" src="/html/wg/wiki/index.php?title=-&action=raw&gen=js&useskin=w3cmonobook"><!-- site js --></script>
</head>
<body class="mediawiki ltr ns-0 ns-subject page-Testing_Authoring skin-w3cmonobook">
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<a id="top"></a>
<h1 id="firstHeading" class="firstHeading">Testing/Authoring/</h1>
<div id="bodyContent">
<h3 id="siteSub">From HTML WG Wiki</h3>
<div id="contentSub"><span class="subpages">< <a href="/html/wg/wiki/Testing" title="Testing">Testing</a></span></div>
<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div> <!-- start content -->
<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Authoring_Tests"><span class="tocnumber">1</span> <span class="toctext">Authoring Tests</span></a>
<ul>
<li class="toclevel-2"><a href="#Test_Formats"><span class="tocnumber">1.1</span> <span class="toctext">Test Formats</span></a>
<ul>
<li class="toclevel-3"><a href="#Javascript_tests"><span class="tocnumber">1.1.1</span> <span class="toctext">Javascript tests</span></a></li>
<li class="toclevel-3"><a href="#Self-describing_reftests"><span class="tocnumber">1.1.2</span> <span class="toctext">Self-describing reftests</span></a></li>
<li class="toclevel-3"><a href="#Manual_tests"><span class="tocnumber">1.1.3</span> <span class="toctext">Manual tests</span></a></li>
</ul>
</li>
<li class="toclevel-2"><a href="#Tutorials"><span class="tocnumber">1.2</span> <span class="toctext">Tutorials</span></a></li>
<li class="toclevel-2"><a href="#Process_for_contributing"><span class="tocnumber">1.3</span> <span class="toctext">Process for contributing</span></a></li>
</ul>
</li>
</ul>
</td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<a name="Authoring_Tests" id="Authoring_Tests"></a><h1> <span class="mw-headline"> Authoring Tests </span></h1>
<a name="Test_Formats" id="Test_Formats"></a><h2> <span class="mw-headline"> Test Formats </span></h2>
<p>We currently accepted in three formats (in order of preference):
</p>
<a name="Javascript_tests" id="Javascript_tests"></a><h3> <span class="mw-headline"> Javascript tests </span></h3>
<p>These report their results back automatically using javascript in the test file. Such tests typically use the <a href="http://www.w3c-test.org/resources/testharness.js" class="external text" title="http://www.w3c-test.org/resources/testharness.js" rel="nofollow">testing script harness</a> to provide a consistent API.<br />You need the <b>exact</b> following code in your source:
</p>
<pre>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testharness.js"></script>
</pre>
<p>For documentation, see the source code of the <a href="http://www.w3c-test.org/resources/testharness.js" class="external text" title="http://www.w3c-test.org/resources/testharness.js" rel="nofollow">testing script harness</a>.
</p>
<a name="Self-describing_reftests" id="Self-describing_reftests"></a><h3> <span class="mw-headline"> Self-describing reftests </span></h3>
<p>These are used when specific visual rendering has to be tested. The test uses two files which are (typically) supposed to have identical rendering; one relying on the feature under test and one achieving the same visual result through other means. The test passes when the renderings are pixel-for-pixel identical. In order that the tests can also be run in situations where automatic comparisons of the two pages are not possible, they must have text in the page that allows a human to determine the pass condition without access to the reference. The <a href="http://wiki.csswg.org/test/reftest" class="external text" title="http://wiki.csswg.org/test/reftest" rel="nofollow">CSS WG Wiki</a> has more information about writing reftests.
</p>
<a name="Manual_tests" id="Manual_tests"></a><h3> <span class="mw-headline"> Manual tests </span></h3>
<p>These can be used as a <b>last resort</b> when a feature cannot be tested automatically.
</p>
<a name="Tutorials" id="Tutorials"></a><h2> <span class="mw-headline"> Tutorials </span></h2>
<ul><li> <a href="http://hoppipolla.co.uk/talks/testing/testing.html" class="external text" title="http://hoppipolla.co.uk/talks/testing/testing.html" rel="nofollow">HTML Testing</a> by James Graham
</li></ul>
<a name="Process_for_contributing" id="Process_for_contributing"></a><h2> <span class="mw-headline"> Process for contributing </span></h2>
<p>The process for submission and approval of tests is currently:
</p>
<ul><li> Write tests
</li></ul>
<ul><li> <a href="http://www.w3.org/html/wg/wiki/Testing/Submission/" class="external text" title="http://www.w3.org/html/wg/wiki/Testing/Submission/" rel="nofollow">Submit the tests to the working group</a>
</li></ul>
<ul><li> Wait for the tests to be reviewed
</li></ul>
<!--
NewPP limit report
Preprocessor node count: 11/1000000
Post-expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Expensive parser function count: 0/100
-->
<!-- Saved in parser cache with key wikidb-htmlwg_:pcache:idhash:423-0!1!0!!en!2!edit=0 and timestamp 20120116052213 -->
<div class="printfooter">
Retrieved from "<a href="http://www.w3.org/html/wg/wiki/Testing/Authoring/">http://www.w3.org/html/wg/wiki/Testing/Authoring/</a>"</div>
<!-- end content -->
<div class="visualClear"></div>
</div>
</div>
</div>
<div id="column-one">
<div id="p-cactions" class="portlet">
<h5>Views</h5>
<div class="pBody">
<ul>
<li id="ca-nstab-main" class="selected"><a href="/html/wg/wiki/Testing/Authoring/" title="View the content page [c]" accesskey="c">Page</a></li>
<li id="ca-talk" class="new"><a href="/html/wg/wiki/index.php?title=Talk:Testing/Authoring/&action=edit&redlink=1" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
<li id="ca-viewsource"><a href="/html/wg/wiki/index.php?title=Testing/Authoring/&action=edit" title="This page is protected. You can view its source [e]" accesskey="e">View source</a></li>
<li id="ca-history"><a href="/html/wg/wiki/index.php?title=Testing/Authoring/&action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li> </ul>
</div>
</div>
<div class="portlet" id="p-personal">
<h5>Personal tools</h5>
<div class="pBody">
<ul>
<li id="pt-login"><a href="/html/wg/wiki/index.php?title=Special:UserLogin&returnto=Testing/Authoring/" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li>
</ul>
</div>
</div>
<div class="portlet" id="p-logo">
<a style="background-image: url(/Icons/w3c_home);" href="/html/wg/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"></a>
</div>
<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
<div class='generated-sidebar portlet' id='p-navigation'>
<h5>Navigation</h5>
<div class='pBody'>
<ul>
<li id="n-mainpage-description"><a href="/html/wg/wiki/Main_Page">Main page</a></li>
<li id="n-portal"><a href="/html/wg/wiki/HTML_WG_Wiki:Community_Portal" title="About the project, what you can do, where to find things">Community portal</a></li>
<li id="n-currentevents"><a href="/html/wg/wiki/HTML_WG_Wiki:Current_events" title="Find background information on current events">Current events</a></li>
<li id="n-recentchanges"><a href="/html/wg/wiki/Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
<li id="n-randompage"><a href="/html/wg/wiki/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li>
<li id="n-help"><a href="/html/wg/wiki/Help:Contents" title="The place to find out">Help</a></li>
</ul>
</div>
</div>
<div id="p-search" class="portlet">
<h5><label for="searchInput">Search</label></h5>
<div id="searchBody" class="pBody">
<form action="/html/wg/wiki/index.php" id="searchform"><div>
<input type='hidden' name="title" value="Special:Search"/>
<input id="searchInput" name="search" type="text" title="Search HTML WG Wiki [f]" accesskey="f" value="" />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if exists" />
<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
</div></form>
</div>
</div>
<div class="portlet" id="p-tb">
<h5>Toolbox</h5>
<div class="pBody">
<ul>
<li id="t-whatlinkshere"><a href="/html/wg/wiki/Special:WhatLinksHere/Testing/Authoring/" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
<li id="t-recentchangeslinked"><a href="/html/wg/wiki/Special:RecentChangesLinked/Testing/Authoring/" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
<li id="t-specialpages"><a href="/html/wg/wiki/Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
<li id="t-print"><a href="/html/wg/wiki/index.php?title=Testing/Authoring/&printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li> <li id="t-permalink"><a href="/html/wg/wiki/index.php?title=Testing/Authoring/&oldid=11406" title="Permanent link to this revision of the page">Permanent link</a></li> </ul>
</div>
</div>
</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer">
<div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="/html/wg/wiki/skins/common/images/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" /></a></div>
<ul id="f-list">
<li id="lastmod"> This page was last modified on 4 November 2011, at 21:52.</li>
<li id="viewcount">This page has been accessed 43,609 times.</li>
<li id="privacy"><a href="/html/wg/wiki/HTML_WG_Wiki:Privacy_policy" title="HTML WG Wiki:Privacy policy">Privacy policy</a></li>
<li id="about"><a href="/html/wg/wiki/HTML_WG_Wiki:About" title="HTML WG Wiki:About">About HTML WG Wiki</a></li>
<li id="disclaimer"><a href="/html/wg/wiki/HTML_WG_Wiki:General_disclaimer" title="HTML WG Wiki:General disclaimer">Disclaimers</a></li>
</ul>
</div>
</div>
<script type="text/javascript">if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.141 secs. --></body></html>