diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:41 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:41 -0800 |
commit | 648161bb0edfc3d43db63caed5cc5213bc6cb78f (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /JavaScriptCore/tests/mozilla/js1_6/Regress | |
parent | a65af38181ac7d34544586bdb5cd004de93897ad (diff) | |
download | external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.zip external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.tar.gz external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'JavaScriptCore/tests/mozilla/js1_6/Regress')
8 files changed, 0 insertions, 361 deletions
diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/browser.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/browser.js deleted file mode 100644 index b262fa1..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/browser.js +++ /dev/null @@ -1 +0,0 @@ -// dummy file diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-301574.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-301574.js deleted file mode 100644 index 28b1d1a..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-301574.js +++ /dev/null @@ -1,67 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** 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 JavaScript Engine testing utilities. - * - * The Initial Developer of the Original Code is - * Mozilla Foundation. - * Portions created by the Initial Developer are Copyright (C) 2005 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): Wladimir Palant - * shutdown - * - * 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 ***** */ -//----------------------------------------------------------------------------- -var bug = 301574; -var summary = 'E4X should be enabled even when e4x=1 not specified'; -var actual = 'No error'; -var expect = 'No error'; - -printBugNumber (bug); -printStatus (summary); - -try -{ - var xml = XML('<xml/>'); -} -catch(e) -{ - actual = 'error: ' + e; -} - -reportCompare(expect, actual, summary + ': XML()'); - -try -{ - var xml = XML('<p>text</p>'); -} -catch(e) -{ - actual = 'error: ' + e; -} - -reportCompare(expect, actual, summary + ': XMLList()'); diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-309242.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-309242.js deleted file mode 100644 index a97bede..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-309242.js +++ /dev/null @@ -1,75 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** 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 JavaScript Engine testing utilities. - * - * The Initial Developer of the Original Code is - * Mozilla Foundation. - * Portions created by the Initial Developer are Copyright (C) 2005 - * 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 ***** */ -//----------------------------------------------------------------------------- -var bug = 309242; -var summary = 'E4X should be on by default while preserving comment hack'; -var actual = ''; -var expect = ''; - -printBugNumber (bug); -printStatus (summary); - -/* - E4X should be available regardless of script type - <!-- and --> should begin comment to end of line - unless type=text/javascript;e4x=1 -*/ - -expect = true; -actual = true; -// the next line will be ignored when e4x is not requested -<!-- comment -->; actual = false; - -reportCompare(expect, actual, summary + ': <!-- is comment to end of line'); - -expect = true; -actual = false; -// the next line will be ignored when e4x is not requested -<!-- -actual = true; -// --> - -reportCompare(expect, actual, summary + ': comment hack works inside script'); - -// E4X is available always - -var x = <foo/>; - -expect = 'element'; -actual = x.nodeKind(); - -reportCompare(expect, actual, summary + ': E4X is available'); diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-311157-01.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-311157-01.js deleted file mode 100644 index 46af70c..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-311157-01.js +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** 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 JavaScript Engine testing utilities. - * - * The Initial Developer of the Original Code is - * Mozilla Foundation. - * Portions created by the Initial Developer are Copyright (C) 2005 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): Brendan Eich - * - * 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 ***** */ - -var bug = 311157; -var summary = 'Comment-hiding compromise left E4X parsing/scanning inconsistent'; -var actual = 'No Crash'; -var expect = 'No Crash'; - -printBugNumber (bug); -printStatus (summary); - -try -{ - eval('var x = <hi> <!-- duh -->\n there </hi>'); -} -catch(e) -{ -} - -reportCompare(expect, actual, summary); - diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-311157-02.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-311157-02.js deleted file mode 100644 index a7ef464..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-311157-02.js +++ /dev/null @@ -1,55 +0,0 @@ -/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* ***** 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 JavaScript Engine testing utilities. - * - * The Initial Developer of the Original Code is - * Mozilla Foundation. - * Portions created by the Initial Developer are Copyright (C) 2005 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): Brendan Eich - * - * 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 ***** */ - -var bug = 311157; -var summary = 'Comment-hiding compromise left E4X parsing/scanning inconsistent'; -var actual = 'No Crash'; -var expect = 'No Crash'; - -printBugNumber (bug); -printStatus (summary); - -try -{ - eval('var x = <hi> <![CDATA[ duh ]]>\n there </hi>'); -} -catch(e) -{ -} - -reportCompare(expect, actual, summary); - diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-314887.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-314887.js deleted file mode 100644 index 61cb87a..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-314887.js +++ /dev/null @@ -1,51 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** 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 JavaScript Engine testing utilities. - * - * The Initial Developer of the Original Code is - * Mozilla Foundation. - * Portions created by the Initial Developer are Copyright (C) 2005 - * 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 ***** */ -//----------------------------------------------------------------------------- -var bug = 314887; -var summary = 'Do not crash when morons embed script tags in external script files'; -var actual = 'No Crash'; -var expect = 'No Crash'; - -printBugNumber (bug); -printStatus (summary); - -<script language="JavaScript" type="text/JavaScript"> -<!-- -//--> -</script> - -reportCompare(expect, actual, summary); diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-320172.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-320172.js deleted file mode 100644 index badd987..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/regress-320172.js +++ /dev/null @@ -1,56 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** 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 JavaScript Engine testing utilities. - * - * The Initial Developer of the Original Code is - * Mozilla Foundation. - * Portions created by the Initial Developer are Copyright (C) 2005 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): shutdown@flashmail.com - * - * 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 ***** */ -//----------------------------------------------------------------------------- -var bug = 320172; -var summary = 'Regression from bug 285219'; -var actual = 'No Crash'; -var expect = 'No Crash'; - -enterFunc ('test'); -printBugNumber (bug); -printStatus (summary); - -try -{ - (function xxx(){ ["var x"].forEach(eval); })(); -} -catch(ex) -{ -} - -printStatus('No Crash'); -reportCompare(expect, actual, summary); diff --git a/JavaScriptCore/tests/mozilla/js1_6/Regress/shell.js b/JavaScriptCore/tests/mozilla/js1_6/Regress/shell.js deleted file mode 100644 index b262fa1..0000000 --- a/JavaScriptCore/tests/mozilla/js1_6/Regress/shell.js +++ /dev/null @@ -1 +0,0 @@ -// dummy file |