Skip to content

Commit

Permalink
Merge pull request #388 from Ms2ger/interfaces
Browse files Browse the repository at this point in the history
Cleanup some idlharness tests and make it clearer what they test.
  • Loading branch information
zqzhang committed Dec 5, 2013
2 parents 928792b + 04112e3 commit 30b60be
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 50 deletions.
8 changes: 5 additions & 3 deletions IndexedDB/submissions/Opera/non-finished/interfaces.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<!doctype html>
<meta charset=utf-8>
<title>DOM4 IDL tests</title>
<div id=log></div>
<title>IndexedDB IDL tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>

<h1>IndexedDB IDL tests</h1>
<div id=log></div>

<script src=support.js></script>
<script type=text/plain>

Expand Down Expand Up @@ -282,4 +285,3 @@
});
idlArray.test();
</script>
<p> WAT?
5 changes: 4 additions & 1 deletion XMLHttpRequest/tests/submissions/Ms2ger/interfaces.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<!doctype html>
<meta charset=utf-8>
<title>XMLHttpRequest IDL tests</title>
<div id=log></div>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>

<h1>XMLHttpRequest IDL tests</h1>
<div id=log></div>

<script type=text/plain class=untested>
interface EventTarget {
void addEventListener(DOMString type, EventListener? callback, optional boolean capture /* = false */);
Expand Down
8 changes: 6 additions & 2 deletions dom/interfaces.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<!doctype html>
<title>DOM4 IDL tests</title>
<div id=log></div>
<meta charset=utf-8>
<title>DOM IDL tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>

<h1>DOM IDL tests</h1>
<div id=log></div>

<script type=text/plain>
exception DOMException {
const unsigned short INDEX_SIZE_ERR = 1;
Expand Down
11 changes: 4 additions & 7 deletions hr-time/idlharness.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>idlharness test</title>
<meta charset="utf-8">
<title>High Resolution Time IDL tests</title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/hr-time/#sec-extenstions-performance-interface"/>
<script src="/resources/testharness.js"></script>
Expand All @@ -11,8 +11,8 @@
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>idlharness test</h1>
<p>This test validates the WebIDL included in the High Resolution Time specification.</p>
<h1>High Resolution Time IDL tests</h1>
<div id="log"></div>

<pre id='untested_idl' style='display:none'>

Expand Down Expand Up @@ -49,8 +49,5 @@ <h1>idlharness test</h1>
})();

</script>

<div id="log"></div>

</body>
</html>
8 changes: 6 additions & 2 deletions html/dom/interfaces.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<!doctype html>
<title>HTML IDL tests</title>
<meta charset=utf-8>
<!-- WARNING: These tests are preliminary and probably partly incorrect. -->
<div id=log></div>
<title>HTML IDL tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/resources/WebIDLParser.js></script>
<script src=/resources/idlharness.js></script>

<h1>HTML IDL tests</h1>
<div id=log></div>

<!-- URL IDLs -->
<script type=text/plain class=untested>
[Constructor(DOMString url, optional (URL or DOMString) base = "about:blank")]
Expand Down
11 changes: 4 additions & 7 deletions navigation-timing/idlharness.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>idlharness test</title>
<meta charset="utf-8">
<title>Navigation Timing IDL tests</title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-timing-interface"/>
<link rel="help" href="http://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface"/>
Expand All @@ -13,8 +13,8 @@
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>idlharness test</h1>
<p>This test validates the WebIDL included in the Navigation Timing specification.</p>
<h1>Navigation Timing IDL tests</h1>
<div id="log"></div>

<pre id='untested_idl' style='display:none'>

Expand Down Expand Up @@ -115,8 +115,5 @@ <h1>idlharness test</h1>
idl_array.test();
})();
</script>

<div id="log"></div>

</body>
</html>
9 changes: 4 additions & 5 deletions page-visibility/idlharness.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>idlharness test</title>
<meta charset="utf-8">
<title>Page Visibility IDL tests</title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/page-visibility/#sec-document-interface"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/webidl2.js/lib/webidl2.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>idlharness test</h1>
<p>This test validates the WebIDL included in the Page Visibility specification.</p>
<h1>Page Visibility IDL tests</h1>

<pre id='untested_idl' style='display:none'>
interface Document {
Expand Down
13 changes: 5 additions & 8 deletions performance-timeline/idlharness.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>idlharness test</title>
<meta charset="utf-8">
<title>Performance Timeline IDL tests</title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/performance-timeline/#performanceentry"/>
<link rel="help" href="http://www.w3.org/TR/performance-timeline/#performance"/>
<link rel="help" href="http://www.w3.org/TR/performance-timeline/#performanceentrylist"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/webidl2/lib/webidl2.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>idlharness test</h1>
<p>This test validates the WebIDL included in the Performance Timeline specification.</p>
<h1>Performance Timeline IDL tests</h1>
<div id="log"></div>

<pre id='untested_idl' style='display:none'>
interface Performance {
Expand Down Expand Up @@ -52,8 +52,5 @@ <h1>idlharness test</h1>
})();

</script>

<div id="log"></div>

</body>
</html>
13 changes: 5 additions & 8 deletions user-timing/idlharness.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>idlharness test</title>
<meta charset="utf-8">
<title>User Timing IDL tests</title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/user-timing/#extensions-performance-interface"/>
<link rel="help" href="http://www.w3.org/TR/user-timing/#performancemark"/>
<link rel="help" href="http://www.w3.org/TR/user-timing/#performancemeasure"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/webidl2/lib/webidl2.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>idlharness test</h1>
<p>This test validates the WebIDL included in the user Timing specification.</p>
<h1>User Timing IDL tests</h1>
<div id="log"></div>

<pre id='untested_idl' style='display:none'>
interface Performance {
Expand Down Expand Up @@ -55,8 +55,5 @@ <h1>idlharness test</h1>
})();

</script>

<div id="log"></div>

</body>
</html>
11 changes: 4 additions & 7 deletions webstorage/idlharness.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>idlharness test</title>
<meta charset="utf-8">
<title>Web Storage IDL tests</title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/webstorage/#storage"/>
<script src="/resources/testharness.js"></script>
Expand All @@ -11,8 +11,8 @@
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>idlharness test</h1>
<p>This test validates the WebIDL included in the Web Storage specification.</p>
<h1>Web Storage IDL tests</h1>
<div id="log"></div>

<pre id='untested_idl' style='display:none'>
interface Window {
Expand Down Expand Up @@ -76,8 +76,5 @@ <h1>idlharness test</h1>
})();

</script>

<div id="log"></div>

</body>
</html>

0 comments on commit 30b60be

Please sign in to comment.