Skip to content

Commit

Permalink
[tests] update misc tests for #7390
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Apr 17, 2019
1 parent d156370 commit 5a8fa40
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion tests/misc/compile.hxml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-p src
#-D MISC_TEST_FILTER=3802
# -D MISC_TEST_FILTER=6790
--run Main
2 changes: 1 addition & 1 deletion tests/misc/projects/Issue4540/Main.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Main {
static function main() {
js.Promise.resolve(0).then(function(c) test(c));
js.lib.Promise.resolve(0).then(function(c) test(c));
}

static function test(a:{test:String}) {}
Expand Down
4 changes: 2 additions & 2 deletions tests/misc/projects/Issue4540/compile-fail.hxml.stderr
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Main.hx:3: characters 53-54 : Int should be { test : String }
Main.hx:3: characters 53-54 : For function argument 'a'
Main.hx:3: characters 57-58 : Int should be { test : String }
Main.hx:3: characters 57-58 : For function argument 'a'
2 changes: 1 addition & 1 deletion tests/misc/projects/Issue6790/Main.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import js.Promise;
import js.lib.Promise;

class Main {
static function main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/projects/Issue6790/Mismatch.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import js.Promise;
import js.lib.Promise;

class Mismatch {
static function main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/projects/Issue6790/compile-fail.hxml.stderr
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Mismatch.hx:6: characters 19-26 : (e : Unknown<0>) -> String should be Null<js.PromiseHandler<Dynamic, Int>>
Mismatch.hx:6: characters 19-26 : (e : Unknown<0>) -> String should be Null<js.lib.PromiseHandler<Dynamic, Int>>
Mismatch.hx:6: characters 19-26 : For optional function argument 'onRejected'
24 changes: 12 additions & 12 deletions tests/misc/projects/Issue6790/compile.hxml.stderr
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
Main.hx:7: characters 34-35 : Warning : String
Main.hx:7: characters 9-37 : Warning : js.Promise<Void>
Main.hx:7: characters 9-37 : Warning : js.lib.Promise<Void>
Main.hx:8: characters 34-35 : Warning : String
Main.hx:8: characters 56-57 : Warning : Unknown<0>
Main.hx:8: characters 9-59 : Warning : js.Promise<Void>
Main.hx:8: characters 9-59 : Warning : js.lib.Promise<Void>
Main.hx:10: characters 35-36 : Warning : String
Main.hx:10: characters 9-50 : Warning : js.Promise<Int>
Main.hx:10: characters 9-50 : Warning : js.lib.Promise<Int>
Main.hx:11: characters 35-36 : Warning : String
Main.hx:11: characters 9-67 : Warning : js.Promise<Int>
Main.hx:11: characters 9-67 : Warning : js.lib.Promise<Int>
Main.hx:13: characters 40-41 : Warning : Unknown<0>
Main.hx:13: characters 9-55 : Warning : js.Promise<Int>
Main.hx:13: characters 9-55 : Warning : js.lib.Promise<Int>
Main.hx:14: characters 40-41 : Warning : Unknown<0>
Main.hx:14: characters 9-72 : Warning : js.Promise<Int>
Main.hx:14: characters 9-72 : Warning : js.lib.Promise<Int>
Main.hx:16: characters 35-36 : Warning : String
Main.hx:16: characters 70-71 : Warning : Unknown<0>
Main.hx:16: characters 9-85 : Warning : js.Promise<Int>
Main.hx:16: characters 9-85 : Warning : js.lib.Promise<Int>
Main.hx:17: characters 35-36 : Warning : String
Main.hx:17: characters 87-88 : Warning : Unknown<0>
Main.hx:17: characters 9-102 : Warning : js.Promise<Int>
Main.hx:17: characters 9-102 : Warning : js.lib.Promise<Int>
Main.hx:18: characters 35-36 : Warning : String
Main.hx:18: characters 70-71 : Warning : Unknown<0>
Main.hx:18: characters 9-102 : Warning : js.Promise<Int>
Main.hx:18: characters 9-102 : Warning : js.lib.Promise<Int>
Main.hx:19: characters 35-36 : Warning : String
Main.hx:19: characters 87-88 : Warning : Unknown<0>
Main.hx:19: characters 9-119 : Warning : js.Promise<Int>
Main.hx:19: characters 9-119 : Warning : js.lib.Promise<Int>
Main.hx:21: characters 41-42 : Warning : Unknown<0>
Main.hx:21: characters 9-46 : Warning : js.Promise<Void>
Main.hx:21: characters 9-46 : Warning : js.lib.Promise<Void>
Main.hx:22: characters 41-42 : Warning : Unknown<0>
Main.hx:22: characters 9-73 : Warning : js.Promise<Int>
Main.hx:22: characters 9-73 : Warning : js.lib.Promise<Int>
2 changes: 1 addition & 1 deletion tests/misc/projects/Issue7655/Main.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import js.Promise;
import js.lib.Promise;

class Main {
static function main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/projects/Issue7655/Mismatch.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import js.Promise;
import js.lib.Promise;

class Mismatch {
static function main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/misc/projects/Issue7655/compile-fail.hxml.stderr
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Mismatch.hx:6: characters 19-26 : (e : Unknown<0>) -> String should be js.PromiseHandler<Dynamic, Int>
Mismatch.hx:6: characters 19-26 : (e : Unknown<0>) -> String should be js.lib.PromiseHandler<Dynamic, Int>
Mismatch.hx:6: characters 19-26 : For optional function argument 'onRejected'
28 changes: 14 additions & 14 deletions tests/misc/projects/Issue7655/compile.hxml.stderr
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
Main.hx:7: characters 34-35 : Warning : String
Main.hx:7: characters 9-37 : Warning : js.Thenable<Void>
Main.hx:7: characters 9-37 : Warning : js.lib.Thenable<Void>
Main.hx:8: characters 34-35 : Warning : String
Main.hx:8: characters 56-57 : Warning : Unknown<0>
Main.hx:8: characters 9-59 : Warning : js.Thenable<Void>
Main.hx:8: characters 9-59 : Warning : js.lib.Thenable<Void>
Main.hx:10: characters 35-36 : Warning : String
Main.hx:10: characters 9-50 : Warning : js.Thenable<Int>
Main.hx:10: characters 9-50 : Warning : js.lib.Thenable<Int>
Main.hx:11: characters 35-36 : Warning : String
Main.hx:11: characters 9-67 : Warning : js.Thenable<Int>
Main.hx:11: characters 9-67 : Warning : js.lib.Thenable<Int>
Main.hx:13: characters 40-41 : Warning : Unknown<0>
Main.hx:13: characters 9-55 : Warning : js.Thenable<Int>
Main.hx:13: characters 9-55 : Warning : js.lib.Thenable<Int>
Main.hx:14: characters 40-41 : Warning : Unknown<0>
Main.hx:14: characters 9-72 : Warning : js.Thenable<Int>
Main.hx:14: characters 9-72 : Warning : js.lib.Thenable<Int>
Main.hx:16: characters 35-36 : Warning : String
Main.hx:16: characters 70-71 : Warning : Unknown<0>
Main.hx:16: characters 9-85 : Warning : js.Thenable<Int>
Main.hx:16: characters 9-85 : Warning : js.lib.Thenable<Int>
Main.hx:17: characters 35-36 : Warning : String
Main.hx:17: characters 87-88 : Warning : Unknown<0>
Main.hx:17: characters 9-102 : Warning : js.Thenable<Int>
Main.hx:17: characters 9-102 : Warning : js.lib.Thenable<Int>
Main.hx:18: characters 35-36 : Warning : String
Main.hx:18: characters 70-71 : Warning : Unknown<0>
Main.hx:18: characters 9-102 : Warning : js.Thenable<Int>
Main.hx:18: characters 9-102 : Warning : js.lib.Thenable<Int>
Main.hx:19: characters 35-36 : Warning : String
Main.hx:19: characters 87-88 : Warning : Unknown<0>
Main.hx:19: characters 9-119 : Warning : js.Thenable<Int>
Main.hx:21: characters 9-27 : Warning : js.Promise<String>
Main.hx:22: characters 9-51 : Warning : js.Promise<String>
Main.hx:23: characters 9-30 : Warning : js.Promise<String>
Main.hx:26: characters 9-23 : Warning : js.Thenable<String>
Main.hx:19: characters 9-119 : Warning : js.lib.Thenable<Int>
Main.hx:21: characters 9-27 : Warning : js.lib.Promise<String>
Main.hx:22: characters 9-51 : Warning : js.lib.Promise<String>
Main.hx:23: characters 9-30 : Warning : js.lib.Promise<String>
Main.hx:26: characters 9-23 : Warning : js.lib.Thenable<String>

0 comments on commit 5a8fa40

Please sign in to comment.