dap commit: update BatteryManager IDL, add <meta> flags to interactive tests, make harness links relative, intentation fixes

changeset:   278:a567476d8bd4
user:        Anssi Kostiainen <anssi.kostiainen@nokia.com>
date:        Tue Nov 20 15:28:34 2012 +0200
files:       battery/tests/submissions/anssik/battery-charging.html battery/tests/submissions/anssik/battery-created.html battery/tests/submissions/anssik/battery-discharging.html battery/tests/submissions/anssik/battery-full.html battery/tests/submissions/anssik/battery-interface.html battery/tests/submissions/anssik/battery-interface.js battery/tests/submissions/anssik/battery-plugged-in.html battery/tests/submissions/anssik/battery-unplugged.html
description:
update BatteryManager IDL, add <meta> flags to interactive tests, make harness links relative, intentation fixes


diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-charging.html
--- a/battery/tests/submissions/anssik/battery-charging.html	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-charging.html	Tue Nov 20 15:28:34 2012 +0200
@@ -1,9 +1,10 @@
 <!DOCTYPE html>
 <html>
   <head>
-  <title>Battery Status API Test Suite</title>
-  <script src="http://www.w3c-test.org/resources/testharness.js"></script>
-  <link rel='stylesheet' href='http://w3c-test.org/resources/testharness.css' media='all'/>
+    <title>Battery Status API Test Suite</title>
+    <script src="/resources/testharness.js"></script>
+    <link rel="stylesheet" href="/resources/testharness.css" media="all"/>
+    <meta name="flags" content="interact">
   </head>
   <body>
     <h1>Description</h1>
diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-created.html
--- a/battery/tests/submissions/anssik/battery-created.html	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-created.html	Tue Nov 20 15:28:34 2012 +0200
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
 <html>
   <head>
-  <title>Battery Status API Test Suite</title>
-  <script src="http://www.w3c-test.org/resources/testharness.js"></script>
-  <link rel='stylesheet' href='http://w3c-test.org/resources/testharness.css' media='all'/>
+    <title>Battery Status API Test Suite</title>
+    <script src="/resources/testharness.js"></script>
+    <link rel="stylesheet" href="/resources/testharness.css" media="all"/>
   </head>
   <body>
     <h1>Description</h1>
diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-discharging.html
--- a/battery/tests/submissions/anssik/battery-discharging.html	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-discharging.html	Tue Nov 20 15:28:34 2012 +0200
@@ -1,9 +1,10 @@
 <!DOCTYPE html>
 <html>
   <head>
-  <title>Battery Status API Test Suite</title>
-  <script src="http://www.w3c-test.org/resources/testharness.js"></script>
-  <link rel='stylesheet' href='http://w3c-test.org/resources/testharness.css' media='all'/>
+    <title>Battery Status API Test Suite</title>
+    <script src="/resources/testharness.js"></script>
+    <link rel="stylesheet" href="/resources/testharness.css" media="all"/>
+    <meta name="flags" content="interact">
   </head>
   <body>
     <h1>Description</h1>
diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-full.html
--- a/battery/tests/submissions/anssik/battery-full.html	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-full.html	Tue Nov 20 15:28:34 2012 +0200
@@ -1,9 +1,10 @@
 <!DOCTYPE html>
 <html>
   <head>
-  <title>Battery Status API Test Suite</title>
-  <script src="http://www.w3c-test.org/resources/testharness.js"></script>
-  <link rel='stylesheet' href='http://w3c-test.org/resources/testharness.css' media='all'/>
+    <title>Battery Status API Test Suite</title>
+    <script src="/resources/testharness.js"></script>
+    <link rel="stylesheet" href="/resources/testharness.css" media="all"/>
+    <meta name="flags" content="interact">
   </head>
   <body>
     <h1>Description</h1>
diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-interface.html
--- a/battery/tests/submissions/anssik/battery-interface.html	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-interface.html	Tue Nov 20 15:28:34 2012 +0200
@@ -1,27 +1,28 @@
 <!DOCTYPE html>
 <html>
-<head>
-<title>Battery Status API Test Suite</title>
-<script src="http://www.w3c-test.org/resources/testharness.js"></script>
-<script src="battery-interface.js"></script>
-</head>
-<body>
-<h1>Description</h1>
-<p>
-  This test validates the BatteryManager interface IDL.
-</p>
+  <head>
+    <title>Battery Status API Test Suite</title>
+    <script src="/resources/testharness.js"></script>
+    <link rel="stylesheet" href="/resources/testharness.css" media="all"/>
+    <script src="battery-interface.js"></script>
+  </head>
+  <body>
+    <h1>Description</h1>
+    <p>
+      This test validates the BatteryManager interface IDL.
+    </p>
 
-<div id="log"></div>
-<p>
-  <small>
-    Distributed under both the
-    <a href="http://www.w3.org/Consortium/Legal/2008/04-testsuite-license">
-    W3C Test Suite License</a> and the
-    <a href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license">
-    W3C 3-clause BSD License</a>. To contribute to a W3C Test Suite, see the
-    <a href="http://www.w3.org/2004/10/27-testcases">policies and contribution
-    forms</a>.
-  </small>
-</p>
-</body>
+    <div id="log"></div>
+    <p>
+      <small>
+        Distributed under both the
+        <a href="http://www.w3.org/Consortium/Legal/2008/04-testsuite-license">
+        W3C Test Suite License</a> and the
+        <a href="http://www.w3.org/Consortium/Legal/2008/03-bsd-license">
+        W3C 3-clause BSD License</a>. To contribute to a W3C Test Suite, see the
+        <a href="http://www.w3.org/2004/10/27-testcases">policies and contribution
+        forms</a>.
+      </small>
+    </p>
+  </body>
 </html>
\ No newline at end of file
diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-interface.js
--- a/battery/tests/submissions/anssik/battery-interface.js	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-interface.js	Tue Nov 20 15:28:34 2012 +0200
@@ -52,14 +52,14 @@
   *
   * [NoInterfaceObject]
   * interface BatteryManager : EventTarget {
-  *     readonly attribute boolean      charging;
-  *     readonly attribute double       chargingTime;
-  *     readonly attribute double       dischargingTime;
-  *     readonly attribute double       level;
-  *              attribute EventHandler onchargingchange;
-  *              attribute EventHandler onchargingtimechange;
-  *              attribute EventHandler ondischargingtimechange;
-  *              attribute EventHandler onlevelchange;
+  *     readonly attribute boolean             charging;
+  *     readonly attribute unrestricted double chargingTime;
+  *     readonly attribute unrestricted double dischargingTime;
+  *     readonly attribute double              level;
+  *              attribute EventHandler        onchargingchange;
+  *              attribute EventHandler        onchargingtimechange;
+  *              attribute EventHandler        ondischargingtimechange;
+  *              attribute EventHandler        onlevelchange;
   * };
   *
   */
@@ -80,7 +80,7 @@
     assert_readonly(navigator.battery, 'charging', 'charging must be readonly')
   }, 'charging attribute is readonly');
 
-  // readonly attribute double chargingTime;
+  // readonly attribute unrestricted double chargingTime;
 
   test(function() {
     assert_idl_attribute(navigator.battery, 'chargingTime', 'battery must have chargingTime attribute');
@@ -90,7 +90,7 @@
     assert_readonly(navigator.battery, 'chargingTime', 'chargingTime must be readonly')
   }, 'chargingTime attribute is readonly');
 
-  // readonly attribute double dischargingTime;
+  // readonly attribute unrestricted double dischargingTime;
 
   test(function() {
     assert_idl_attribute(navigator.battery, 'dischargingTime', 'battery must have dischargingTime attribute');
diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-plugged-in.html
--- a/battery/tests/submissions/anssik/battery-plugged-in.html	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-plugged-in.html	Tue Nov 20 15:28:34 2012 +0200
@@ -1,9 +1,10 @@
 <!DOCTYPE html>
 <html>
   <head>
-  <title>Battery Status API Test Suite</title>
-  <script src="http://www.w3c-test.org/resources/testharness.js"></script>
-  <link rel='stylesheet' href='http://w3c-test.org/resources/testharness.css' media='all'/>
+    <title>Battery Status API Test Suite</title>
+    <script src="/resources/testharness.js"></script>
+    <link rel="stylesheet" href="/resources/testharness.css" media="all"/>
+    <meta name="flags" content="interact">
   </head>
   <body>
     <h1>Description</h1>
diff -r 90654b6ed808 -r a567476d8bd4 battery/tests/submissions/anssik/battery-unplugged.html
--- a/battery/tests/submissions/anssik/battery-unplugged.html	Tue Nov 20 10:55:01 2012 +0200
+++ b/battery/tests/submissions/anssik/battery-unplugged.html	Tue Nov 20 15:28:34 2012 +0200
@@ -1,9 +1,10 @@
 <!DOCTYPE html>
 <html>
   <head>
-  <title>Battery Status API Test Suite</title>
-  <script src="http://www.w3c-test.org/resources/testharness.js"></script>
-  <link rel='stylesheet' href='http://w3c-test.org/resources/testharness.css' media='all'/>
+    <title>Battery Status API Test Suite</title>
+    <script src="/resources/testharness.js"></script>
+    <link rel="stylesheet" href="/resources/testharness.css" media="all"/>
+    <meta name="flags" content="interact">
   </head>
   <body>
     <h1>Description</h1>

Received on Thursday, 22 November 2012 13:27:49 UTC