~james-page/ubuntu/natty/rhino/fix-304702

« back to all changes in this revision

Viewing changes to testsrc/org/mozilla/javascript/tests/Bug412433Test.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan, Marcus Better, Matthias Klose, Damien Raude-Morvan
  • Date: 2009-04-13 02:40:15 UTC
  • mfrom: (11.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090413024015-i21xnoehukpipbcw
Tags: 1.7R2-1
[ Marcus Better ]
* Updated package descriptions.

[ Matthias Klose ]
* (Build-)depend on default-jre-headless/-jdk.
* Drop alternate dependencies on java2-runtime-headless and
  java2-runtime-headless. The binary package is currently built to
  require a java5 runtime.

[ Damien Raude-Morvan ]
* New upstream release.
  - new 02_exclude-jdk15 patch to exclude already compiled classes
    for jdk15 rebuild: gcj doesn't handle compiling classes already
    on its classpath
  - new "rhino-debugger" launcher for Rhino Debugger Swing UI
  - update "rhino" launcher to exclude OpenJDK bundled rhino (Closes: #512498)
* debian/{postinst,prerm }: scripts should take care of errors,
  add set -e before any instruction
* debian/rules: add new get-orig-source target using uscan
* debian/control:
  - Build-Depends on specialized default-jdk-builddep instead of
  default-jdk
  - Bump Standards-Version to 3.8.1: Wrap Uploaders field
  - add Depends on ${misc:Depends}

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * 
 
3
 */
 
4
package org.mozilla.javascript.tests;
 
5
 
 
6
import junit.framework.TestCase;
 
7
 
 
8
import org.mozilla.javascript.*;
 
9
 
 
10
/**
 
11
 * See https://bugzilla.mozilla.org/show_bug.cgi?id=412433
 
12
 * @author Norris Boyd
 
13
 */
 
14
public class Bug412433Test extends TestCase {
 
15
    public void testMaleformedJavascript2()
 
16
    {
 
17
        Context context = Context.enter();
 
18
        ScriptableObject scope = context.initStandardObjects();
 
19
        context.evaluateString(scope, "\"\".split(/[/?,/&]/)", "", 0, null);
 
20
        Context.exit();
 
21
    }
 
22
}