JDK-8008554.js revision 877:cf4d2252d444
155682Smarkm/*
2233294Sstas * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
3233294Sstas * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4233294Sstas *
555682Smarkm * This code is free software; you can redistribute it and/or modify it
6233294Sstas * under the terms of the GNU General Public License version 2 only, as
7233294Sstas * published by the Free Software Foundation.
8233294Sstas *
955682Smarkm * This code is distributed in the hope that it will be useful, but WITHOUT
10233294Sstas * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11233294Sstas * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1255682Smarkm * version 2 for more details (a copy is included in the LICENSE file that
13233294Sstas * accompanied this code).
14233294Sstas *
15233294Sstas * You should have received a copy of the GNU General Public License version
1655682Smarkm * 2 along with this work; if not, write to the Free Software Foundation,
1755682Smarkm * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1855682Smarkm *
1955682Smarkm * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2055682Smarkm * or visit www.oracle.com if you need additional information or have any
2155682Smarkm * questions.
2255682Smarkm */
2355682Smarkm
2455682Smarkm
2555682Smarkm/**
2655682Smarkm * JDK-8008554: Try loading another output free test in this dir both as file and as url
2755682Smarkm *
2855682Smarkm * @test
2955682Smarkm * @run
3055682Smarkm */
3155682Smarkm
3255682Smarkmvar dir = __DIR__;
3355682Smarkmvar file = __FILE__.replace("JDK-8008554", "NASHORN-99");
34178825Sdfrload(file);
3555682Smarkmfile = "file:///" + __DIR__ + "NASHORN-99.js";
3655682Smarkmload(file);
37233294Sstas