aboutsummaryrefslogtreecommitdiff
path: root/test/script/basic
diff options
context:
space:
mode:
Diffstat (limited to 'test/script/basic')
-rw-r--r--test/script/basic/JDK-8026161.js6
-rw-r--r--test/script/basic/JDK-8026161.js.EXPECTED4
2 files changed, 5 insertions, 5 deletions
diff --git a/test/script/basic/JDK-8026161.js b/test/script/basic/JDK-8026161.js
index 49f888b7..e3e88486 100644
--- a/test/script/basic/JDK-8026161.js
+++ b/test/script/basic/JDK-8026161.js
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -28,5 +28,5 @@
* @run
*/
-print(new java.awt.Color(1, 1, 1)) // creates Color[r=1,g=1,b=1]
-print(new java.awt.Color(1.0, 1.0, 1.0)) // Color[r=255,g=255,b=255]
+print(Java.type("jdk.nashorn.test.models.IntFloatOverloadSelection").overloadedMethod(1))
+print(Java.type("jdk.nashorn.test.models.IntFloatOverloadSelection").overloadedMethod(1.0))
diff --git a/test/script/basic/JDK-8026161.js.EXPECTED b/test/script/basic/JDK-8026161.js.EXPECTED
index c7b00b08..ac032cff 100644
--- a/test/script/basic/JDK-8026161.js.EXPECTED
+++ b/test/script/basic/JDK-8026161.js.EXPECTED
@@ -1,2 +1,2 @@
-java.awt.Color[r=1,g=1,b=1]
-java.awt.Color[r=255,g=255,b=255]
+int
+float