Fixed TTS-1875 to move 7 TCs from delta to tct-fileapi-w3c-tests
authoryuhanx.xu <yuhanx.xu@intel.com>
Tue, 13 Aug 2013 08:57:02 +0000 (16:57 +0800)
committerwanmingx.lin <wanmingx.lin@intel.com>
Wed, 14 Aug 2013 09:09:35 +0000 (17:09 +0800)
Signed-off-by: yuhanx.xu <yuhanx.xu@intel.com>
tct-fileapi-w3c-tests/fileapi/FileReader_DONE_type.html [new file with mode: 0644]
tct-fileapi-w3c-tests/fileapi/FileReader_EMPTY_type.html [new file with mode: 0644]
tct-fileapi-w3c-tests/fileapi/FileReader_LOADING_type.html [new file with mode: 0644]
tct-fileapi-w3c-tests/fileapi/FileReader_constructor_base.html [new file with mode: 0644]
tct-fileapi-w3c-tests/fileapi/FileReader_error_readonly.html [new file with mode: 0644]
tct-fileapi-w3c-tests/fileapi/FileReader_readyState_type.html [new file with mode: 0644]
tct-fileapi-w3c-tests/fileapi/FileReader_result_readonly.html [new file with mode: 0644]
tct-fileapi-w3c-tests/tests.xml

diff --git a/tct-fileapi-w3c-tests/fileapi/FileReader_DONE_type.html b/tct-fileapi-w3c-tests/fileapi/FileReader_DONE_type.html
new file mode 100644 (file)
index 0000000..bb1c176
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: FileReader_DONE_type</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-done" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the constant FileReader.DONE is of type number" />
+    <script src="filesupport.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+        var t = async_test(document.title, {timeout: 10000});
+        function RunTest() {
+            var fileReader = new FileReader();
+            if (!fileReader) {
+                FailTest("Fail to get FileReader object");
+            } else {
+                if (typeof fileReader.DONE == "number") {
+                    PassTest();
+                } else {
+                    FailTest("The constant FileReader.DONE is not of type number");
+                }
+            }
+        }
+        RunTest();
+    </script>
+  </body>
+</html>
diff --git a/tct-fileapi-w3c-tests/fileapi/FileReader_EMPTY_type.html b/tct-fileapi-w3c-tests/fileapi/FileReader_EMPTY_type.html
new file mode 100644 (file)
index 0000000..a2ef686
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: FileReader_EMPTY_type</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-empty" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the constant FileReader.EMPTY is of type number" />
+    <script src="filesupport.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+        var t = async_test(document.title, {timeout: 10000});
+        function RunTest() {
+            var fileReader = new FileReader();
+            if (!fileReader) {
+                FailTest("Fail to get FileReader object");
+            } else {
+                if (typeof fileReader.EMPTY == "number") {
+                    PassTest();
+                } else {
+                    FailTest("The constant FileReader.EMPTY is not of type number");
+                }
+            }
+        }
+        RunTest();
+    </script>
+  </body>
+</html>
diff --git a/tct-fileapi-w3c-tests/fileapi/FileReader_LOADING_type.html b/tct-fileapi-w3c-tests/fileapi/FileReader_LOADING_type.html
new file mode 100644 (file)
index 0000000..dc49955
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: FileReader_LOADING_type</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-loading" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the constant FileReader.LOADING is of type number" />
+    <script src="filesupport.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+        var t = async_test(document.title, {timeout: 10000});
+        function RunTest() {
+            var fileReader = new FileReader();
+            if (!fileReader) {
+                FailTest("Fail to get FileReader object");
+            } else {
+                if (typeof fileReader.LOADING == "number") {
+                    PassTest();
+                } else {
+                    FailTest("The constant FileReader.LOADING is not of type number");
+                }
+            }
+        }
+        RunTest();
+    </script>
+  </body>
+</html>
diff --git a/tct-fileapi-w3c-tests/fileapi/FileReader_constructor_base.html b/tct-fileapi-w3c-tests/fileapi/FileReader_constructor_base.html
new file mode 100644 (file)
index 0000000..c8af047
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: FileReader_constructor_base</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-filereader" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if the user agent must return a new FileReader object when the FileReader() constructor is invoked" />
+    <script src="filesupport.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+        var t = async_test(document.title, {timeout: 10000});
+        function RunTest() {
+            var fileReader = new FileReader();
+            if (fileReader && fileReader instanceof FileReader) {
+                PassTest();
+            } else {
+                FailTest("Not return a FileReader object");
+            }
+        }
+        RunTest();
+    </script>
+  </body>
+</html>
diff --git a/tct-fileapi-w3c-tests/fileapi/FileReader_error_readonly.html b/tct-fileapi-w3c-tests/fileapi/FileReader_error_readonly.html
new file mode 100644 (file)
index 0000000..984d135
--- /dev/null
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: FileReader_error_readonly</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-error" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if FileReader.error is readonly" />
+    <script src="filesupport.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+        var t = async_test(document.title);
+        function RunTest() {
+            try {
+                var reader = new FileReader();
+                if (!reader) {
+                    FailTest("Fail to obtain a FileReader object");
+                } else {
+                    var iniValue = reader.error;
+                    var err = new Error("error");
+                    reader.error = err;
+                    if (reader.error == iniValue && reader.error != err) {
+                        PassTest();
+                    } else {
+                        FailTest("FileReader.error is not readonly");
+                    }
+                }
+            } catch (ex) {
+                FailTest("Throw an exception");
+            }
+        }
+        RunTest();
+    </script>
+  </body>
+</html>
diff --git a/tct-fileapi-w3c-tests/fileapi/FileReader_readyState_type.html b/tct-fileapi-w3c-tests/fileapi/FileReader_readyState_type.html
new file mode 100644 (file)
index 0000000..10f41b4
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: FileReader_readyState_type</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-readyState" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if FileReader.readyState is of type number" />
+    <script src="filesupport.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+        var t = async_test(document.title, {timeout: 10000});
+        function RunTest() {
+            var fileReader = new FileReader();
+            if (!fileReader) {
+                FailTest("Fail to get FileReader object");
+            }
+            if (typeof fileReader.readyState == "number") {
+                PassTest();
+            } else {
+                FailTest("The constant FileReader.readyState is not of type number");
+            }
+        }
+        RunTest();
+    </script>
+  </body>
+</html>
diff --git a/tct-fileapi-w3c-tests/fileapi/FileReader_result_readonly.html b/tct-fileapi-w3c-tests/fileapi/FileReader_result_readonly.html
new file mode 100644 (file)
index 0000000..047bce3
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Fan,Weiwei <weiwix.fan@intel.com>
+        Xu,Yuhan <yuhanx.xu@intel.com>
+
+-->
+
+<html>
+  <head>
+    <title>File API Test: FileReader_result_readonly</title>
+    <link rel="author" title="Intel" href="http://www.intel.com" />
+    <link rel="help" href="http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-result" />
+    <meta name="flags" content="" />
+    <meta name="assert" content="Check if FileReader.result is readonly" />
+    <script src="filesupport.js"></script>
+    <script src="../resources/testharness.js"></script>
+    <script src="../resources/testharnessreport.js"></script>
+  </head>
+  <body>
+    <div id="log"></div>
+    <script>
+        var t = async_test(document.title, {timeout: 10000});
+        var TEN = 10;
+        function RunTest() {
+            var fileReader = new FileReader();
+            if (!fileReader) {
+                FailTest("Fail to get FileReader object");
+            }
+            var iniValue = fileReader.result;
+            fileReader.result = iniValue + "result";
+            if (fileReader.result == iniValue && fileReader.result != iniValue + "result") {
+                PassTest();
+            } else {
+                FailTest("The constant FileReader.result is not readonly");
+            }
+        }
+        RunTest();
+    </script>
+  </body>
+</html>
index 2a33b0b193e1f9f16f336bc183778c309d910b4b..a1dec4936dd89c0c484d8768bdd8410b5ea1c2d0 100644 (file)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if the user agent must return a new FileReader object when the FileReader() constructor is invoked" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="auto" priority="P3" id="FileReader_constructor_base">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the user agent must return a new FileReader object when the FileReader() constructor is invoked</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-fileapi-w3c-tests/fileapi/FileReader_constructor_base.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion usage="true" interface="FileReader" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-filereader</spec_url>
+            <spec_statement>When the FileReader() constructor is invoked, the user agent MUST return a new FileReader object</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the constant FileReader.DONE is of type number" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="auto" priority="P2" id="FileReader_DONE_type">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the constant FileReader.DONE is of type number</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-fileapi-w3c-tests/fileapi/FileReader_DONE_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="DONE" interface="FileReader" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-done</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the constant FileReader.EMPTY is of type number" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="auto" priority="P2" id="FileReader_EMPTY_type">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the constant FileReader.EMPTY is of type number</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-fileapi-w3c-tests/fileapi/FileReader_EMPTY_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="EMPTY" interface="FileReader" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-empty</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if FileReader.error is readonly" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="auto" priority="P2" id="FileReader_error_readonly">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if FileReader.error is readonly</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-fileapi-w3c-tests/fileapi/FileReader_error_readonly.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="error" interface="FileReader" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-error</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the constant FileReader.LOADING is of type number" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="auto" priority="P2" id="FileReader_LOADING_type">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if the constant FileReader.LOADING is of type number</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-fileapi-w3c-tests/fileapi/FileReader_LOADING_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="LOADING" interface="FileReader" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-loading</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if FileReader.readyState is of type number" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="auto" priority="P2" id="FileReader_readyState_type">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if FileReader.readyState is of type number</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-fileapi-w3c-tests/fileapi/FileReader_readyState_type.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="readyState" interface="FileReader" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-readyState</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if FileReader.result is readonly" type="compliance" status="approved" component="WebAPI/Storage/File API" execution_type="auto" priority="P2" id="FileReader_result_readonly">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>Check if FileReader.result is readonly</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-fileapi-w3c-tests/fileapi/FileReader_result_readonly.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion element_type="attribute" element_name="result" interface="FileReader" specification="File API" section="Storage" category="Tizen W3C API Specifications"/>
+            <spec_url>http://www.w3.org/TR/2011/WD-FileAPI-20111020/#dfn-result</spec_url>
+            <spec_statement/>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
 </test_definition>