* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Microsoft.JScript / Test / Mozilla / ecma_2 / instanceof / regress-7635.js
index 9510a75897e82b9a464707fe85152b3a4fce807f..ca7cdd6fc774bdd39bfd206305708b21db9a7298 100644 (file)
@@ -1,85 +1,85 @@
-/* ***** BEGIN LICENSE BLOCK *****\r
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1\r
- *\r
- * The contents of this file are subject to the Mozilla Public License Version\r
- * 1.1 (the "License"); you may not use this file except in compliance with\r
- * the License. You may obtain a copy of the License at\r
- * http://www.mozilla.org/MPL/\r
- *\r
- * Software distributed under the License is distributed on an "AS IS" basis,\r
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
- * for the specific language governing rights and limitations under the\r
- * License.\r
- *\r
- * The Original Code is mozilla.org code.\r
- *\r
- * The Initial Developer of the Original Code is\r
- * Netscape Communications Corporation.\r
- * Portions created by the Initial Developer are Copyright (C) 1998\r
- * the Initial Developer. All Rights Reserved.\r
- *\r
- * Contributor(s):\r
- *\r
- * Alternatively, the contents of this file may be used under the terms of\r
- * either the GNU General Public License Version 2 or later (the "GPL"), or\r
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),\r
- * in which case the provisions of the GPL or the LGPL are applicable instead\r
- * of those above. If you wish to allow use of your version of this file only\r
- * under the terms of either the GPL or the LGPL, and not to allow others to\r
- * use your version of this file under the terms of the MPL, indicate your\r
- * decision by deleting the provisions above and replace them with the notice\r
- * and other provisions required by the GPL or the LGPL. If you do not delete\r
- * the provisions above, a recipient may use your version of this file under\r
- * the terms of any one of the MPL, the GPL or the LGPL.\r
- *\r
- * ***** END LICENSE BLOCK ***** */\r
-\r
-/**\r
- *  File Name:          regress-7635.js\r
- *  Reference:          http://bugzilla.mozilla.org/show_bug.cgi?id=7635\r
- *  Description:        instanceof tweaks\r
- *  Author:             \r
- */\r
-\r
-    var SECTION = "instanceof";       // provide a document reference (ie, ECMA section)\r
-    var VERSION = "ECMA_2"; // Version of JavaScript or ECMA\r
-    var TITLE   = "Regression test for Bugzilla #7635";       // Provide ECMA section title or a description\r
-    var BUGNUMBER = "http://bugzilla.mozilla.org/show_bug.cgi?id=7635";     // Provide URL to bugsplat or bugzilla report\r
-\r
-    startTest();               // leave this alone\r
-\r
-    /*\r
-     * Calls to AddTestCase here. AddTestCase is a function that is defined\r
-     * in shell.js and takes three arguments:\r
-     * - a string representation of what is being tested\r
-     * - the expected result\r
-     * - the actual result\r
-     *\r
-     * For example, a test might look like this:\r
-     *\r
-     * var zip = /[\d]{5}$/;\r
-     *\r
-     * AddTestCase(\r
-     * "zip = /[\d]{5}$/; \"PO Box 12345 Boston, MA 02134\".match(zip)",   // description of the test\r
-     *  "02134",                                                           // expected result\r
-     *  "PO Box 12345 Boston, MA 02134".match(zip) );                      // actual result\r
-     *\r
-     */\r
-\r
-       function Foo() {}\r
-       theproto = {};\r
-       Foo.prototype = theproto\r
-       theproto instanceof Foo\r
-\r
-\r
-       AddTestCase( "function Foo() {}; theproto = {}; Foo.prototype = theproto; theproto instanceof Foo",\r
-                       false,\r
-                       theproto instanceof Foo );\r
-       \r
-       var f = new Function();\r
-\r
-       AddTestCase( "var f = new Function(); f instanceof f", false, f instanceof f );\r
-\r
-\r
-    test();       // leave this alone.  this executes the test cases and\r
-                  // displays results.\r
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by the Initial Developer are Copyright (C) 1998
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+/**
+ *  File Name:          regress-7635.js
+ *  Reference:          http://bugzilla.mozilla.org/show_bug.cgi?id=7635
+ *  Description:        instanceof tweaks
+ *  Author:             
+ */
+
+    var SECTION = "instanceof";       // provide a document reference (ie, ECMA section)
+    var VERSION = "ECMA_2"; // Version of JavaScript or ECMA
+    var TITLE   = "Regression test for Bugzilla #7635";       // Provide ECMA section title or a description
+    var BUGNUMBER = "http://bugzilla.mozilla.org/show_bug.cgi?id=7635";     // Provide URL to bugsplat or bugzilla report
+
+    startTest();               // leave this alone
+
+    /*
+     * Calls to AddTestCase here. AddTestCase is a function that is defined
+     * in shell.js and takes three arguments:
+     * - a string representation of what is being tested
+     * - the expected result
+     * - the actual result
+     *
+     * For example, a test might look like this:
+     *
+     * var zip = /[\d]{5}$/;
+     *
+     * AddTestCase(
+     * "zip = /[\d]{5}$/; \"PO Box 12345 Boston, MA 02134\".match(zip)",   // description of the test
+     *  "02134",                                                           // expected result
+     *  "PO Box 12345 Boston, MA 02134".match(zip) );                      // actual result
+     *
+     */
+
+       function Foo() {}
+       theproto = {};
+       Foo.prototype = theproto
+       theproto instanceof Foo
+
+
+       AddTestCase( "function Foo() {}; theproto = {}; Foo.prototype = theproto; theproto instanceof Foo",
+                       false,
+                       theproto instanceof Foo );
+       
+       var f = new Function();
+
+       AddTestCase( "var f = new Function(); f instanceof f", false, f instanceof f );
+
+
+    test();       // leave this alone.  this executes the test cases and
+                  // displays results.