Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=642026 |
michael@0 | 5 | |
michael@0 | 6 | /// Copyright (c) 2009 Microsoft Corporation |
michael@0 | 7 | /// |
michael@0 | 8 | /// Redistribution and use in source and binary forms, with or without modification, are permitted provided |
michael@0 | 9 | /// that the following conditions are met: |
michael@0 | 10 | /// * Redistributions of source code must retain the above copyright notice, this list of conditions and |
michael@0 | 11 | /// the following disclaimer. |
michael@0 | 12 | /// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and |
michael@0 | 13 | /// the following disclaimer in the documentation and/or other materials provided with the distribution. |
michael@0 | 14 | /// * Neither the name of Microsoft nor the names of its contributors may be used to |
michael@0 | 15 | /// endorse or promote products derived from this software without specific prior written permission. |
michael@0 | 16 | /// |
michael@0 | 17 | /// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR |
michael@0 | 18 | /// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
michael@0 | 19 | /// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE |
michael@0 | 20 | /// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@0 | 21 | /// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
michael@0 | 22 | /// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@0 | 23 | /// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
michael@0 | 24 | /// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
michael@0 | 25 | |
michael@0 | 26 | --> |
michael@0 | 27 | <head> |
michael@0 | 28 | <title>Test for Bug 642026</title> |
michael@0 | 29 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 30 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 31 | </head> |
michael@0 | 32 | <body> |
michael@0 | 33 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=642026">Mozilla Bug 642026</a> |
michael@0 | 34 | <p id="display"></p> |
michael@0 | 35 | <div id="content" style="display: none"> |
michael@0 | 36 | |
michael@0 | 37 | </div> |
michael@0 | 38 | <pre id="test"> |
michael@0 | 39 | <script type="application/javascript"> |
michael@0 | 40 | |
michael@0 | 41 | /** Test for Bug 642026 **/ |
michael@0 | 42 | |
michael@0 | 43 | var expResult = ["NaN", "Infinity", "undefined", "eval", "parseInt", "parseFloat", "isNaN", "isFinite", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Array", "String", "Boolean", "Number", "Date", "Date", "RegExp", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "JSON"]; |
michael@0 | 44 | |
michael@0 | 45 | var result = Object.getOwnPropertyNames(window); |
michael@0 | 46 | var result1 = {}; |
michael@0 | 47 | for (var p in result) { |
michael@0 | 48 | result1[result[p]] = true; |
michael@0 | 49 | } |
michael@0 | 50 | |
michael@0 | 51 | ok(expResult.every(function(c) result1[c]), "all of the standard classes have been enumerated"); |
michael@0 | 52 | |
michael@0 | 53 | </script> |
michael@0 | 54 | </pre> |
michael@0 | 55 | </body> |
michael@0 | 56 | </html> |