changeset 985:6da542806ed3

tests: fix
author David Demelier <markand@malikania.fr>
date Tue, 09 Feb 2021 22:42:05 +0100
parents 2e4b29ab8e9c
children 583d9f83e9f5
files tests/test-jsapi-chrono.c tests/test-jsapi-directory.c tests/test-jsapi-file.c tests/test-jsapi-irccd.c tests/test-jsapi-system.c tests/test-jsapi-unicode.c tests/test-jsapi-util.c
diffstat 7 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-jsapi-chrono.c	Tue Feb 09 22:40:29 2021 +0100
+++ b/tests/test-jsapi-chrono.c	Tue Feb 09 22:42:05 2021 +0100
@@ -32,7 +32,7 @@
 {
 	(void)udata;
 
-	plugin = js_plugin_open(SOURCE "/data/example-plugin.js");
+	plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js");
 	ctx = js_plugin_get_context(plugin);
 }
 
--- a/tests/test-jsapi-directory.c	Tue Feb 09 22:40:29 2021 +0100
+++ b/tests/test-jsapi-directory.c	Tue Feb 09 22:42:05 2021 +0100
@@ -32,7 +32,7 @@
 {
 	(void)udata;
 
-	plugin = js_plugin_open(SOURCE "/data/example-plugin.js");
+	plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js");
 	ctx = js_plugin_get_context(plugin);
 
 	duk_push_string(ctx, SOURCE);
--- a/tests/test-jsapi-file.c	Tue Feb 09 22:40:29 2021 +0100
+++ b/tests/test-jsapi-file.c	Tue Feb 09 22:42:05 2021 +0100
@@ -33,7 +33,7 @@
 {
 	(void)udata;
 
-	plugin = js_plugin_open(SOURCE "/data/example-plugin.js");
+	plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js");
 	ctx = js_plugin_get_context(plugin);
 
 	duk_push_string(ctx, SOURCE);
--- a/tests/test-jsapi-irccd.c	Tue Feb 09 22:40:29 2021 +0100
+++ b/tests/test-jsapi-irccd.c	Tue Feb 09 22:42:05 2021 +0100
@@ -35,7 +35,7 @@
 {
 	(void)udata;
 
-	plugin = js_plugin_open(SOURCE "/data/example-plugin.js");
+	plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js");
 	ctx = js_plugin_get_context(plugin);
 }
 
--- a/tests/test-jsapi-system.c	Tue Feb 09 22:40:29 2021 +0100
+++ b/tests/test-jsapi-system.c	Tue Feb 09 22:42:05 2021 +0100
@@ -33,7 +33,7 @@
 {
 	(void)udata;
 
-	plugin = js_plugin_open(SOURCE "/data/example-plugin.js");
+	plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js");
 	ctx = js_plugin_get_context(plugin);
 }
 
--- a/tests/test-jsapi-unicode.c	Tue Feb 09 22:40:29 2021 +0100
+++ b/tests/test-jsapi-unicode.c	Tue Feb 09 22:42:05 2021 +0100
@@ -37,7 +37,7 @@
 {
 	(void)udata;
 
-	plugin = js_plugin_open(SOURCE "/data/example-plugin.js");
+	plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js");
 	ctx = js_plugin_get_context(plugin);
 }
 
--- a/tests/test-jsapi-util.c	Tue Feb 09 22:40:29 2021 +0100
+++ b/tests/test-jsapi-util.c	Tue Feb 09 22:42:05 2021 +0100
@@ -30,7 +30,7 @@
 {
 	(void)udata;
 
-	plugin = js_plugin_open(SOURCE "/data/example-plugin.js");
+	plugin = js_plugin_open("example", SOURCE "/data/example-plugin.js");
 	ctx = js_plugin_get_context(plugin);
 }