yui.js revision 2:da1e581c933b
1214501Srpaulo/* 2214501Srpaulo * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. 3214501Srpaulo * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4214501Srpaulo * 5252190Srpaulo * This code is free software; you can redistribute it and/or modify it 6252190Srpaulo * under the terms of the GNU General Public License version 2 only, as 7214501Srpaulo * published by the Free Software Foundation. 8214501Srpaulo * 9214501Srpaulo * This code is distributed in the hope that it will be useful, but WITHOUT 10214501Srpaulo * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11214501Srpaulo * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12214501Srpaulo * version 2 for more details (a copy is included in the LICENSE file that 13214501Srpaulo * accompanied this code). 14214501Srpaulo * 15214501Srpaulo * You should have received a copy of the GNU General Public License version 16214501Srpaulo * 2 along with this work; if not, write to the Free Software Foundation, 17214501Srpaulo * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18214501Srpaulo * 19214501Srpaulo * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20214501Srpaulo * or visit www.oracle.com if you need additional information or have any 21214501Srpaulo * questions. 22214501Srpaulo */ 23214501Srpaulo 24214501Srpaulo/** 25214501Srpaulo * NASHORN-469 : corpus parse test for yahoo ui library / yahoo ui library min 26214501Srpaulo * 27214501Srpaulo * @test 28214501Srpaulo * @runif external.yui 29214501Srpaulo */ 30214501Srpaulo 31214501Srpaulovar names = [ "yui-min.js", "yui.js" ]; 32214501Srpaulo 33214501Srpaulofor each (name in names) { 34214501Srpaulo try { 35214501Srpaulo try { 36214501Srpaulo var file = __DIR__ + "../external/yui/" + name; 37214501Srpaulo load(__DIR__ + "../external/yui/" + name); 38214501Srpaulo } catch (e) { 39214501Srpaulo print(e); 40214501Srpaulo } 41214501Srpaulo } catch (e) { 42214501Srpaulo print("error: " + e); 43214501Srpaulo } 44214501Srpaulo print("parsed and compiled ok " + name); 45214501Srpaulo} 46214501Srpaulo