[gjs: 5/6] updated tests




commit 27cbf26727cd400b3192b16eedeb153c4a71c713
Author: Nasah <nasahnash19 gmail com>
Date:   Wed Jul 20 17:52:04 2022 +0100

    updated tests

 installed-tests/debugger/keys.debugger.output  | 12 ++-----
 installed-tests/debugger/print.debugger.js     |  2 +-
 installed-tests/debugger/print.debugger.output | 48 ++++----------------------
 3 files changed, 10 insertions(+), 52 deletions(-)
---
diff --git a/installed-tests/debugger/keys.debugger.output b/installed-tests/debugger/keys.debugger.output
index a82947e31..1fb91db05 100644
--- a/installed-tests/debugger/keys.debugger.output
+++ b/installed-tests/debugger/keys.debugger.output
@@ -5,17 +5,9 @@ db> c
 Debugger statement, toplevel at keys.debugger.js:8:0
 db> keys a
 $1 = [object Array]
-[
-    "foo",
-    "bar",
-    "tres"
-]
+["foo", "bar", "tres"]
 db> k a
 $2 = [object Array]
-[
-    "foo",
-    "bar",
-    "tres"
-]
+["foo", "bar", "tres"]
 db> c
 Program exited with code 0
diff --git a/installed-tests/debugger/print.debugger.js b/installed-tests/debugger/print.debugger.js
index ba2857f55..aca7890df 100644
--- a/installed-tests/debugger/print.debugger.js
+++ b/installed-tests/debugger/print.debugger.js
@@ -14,6 +14,6 @@ const j = new Set([5, 6, 7]);
 const k = class J {};
 const l = new GObject.Object();
 const m = new Error('message');
-const n = {a:1};
+const n = {a: 1};
 debugger;
 void (a, b, c, d, e, f, g, h, i, j, k, l, m, n);
diff --git a/installed-tests/debugger/print.debugger.output b/installed-tests/debugger/print.debugger.output
index 73316e799..40fefeccc 100644
--- a/installed-tests/debugger/print.debugger.output
+++ b/installed-tests/debugger/print.debugger.output
@@ -21,62 +21,28 @@ $7 = Symbol("foobar")
 db> # Objects
 db> print h
 $8 = [object Array]
-[
-    1,
-    "money",
-    2,
-    "show",
-    {
-        "three": "to",
-        "get ready": "go cat go"
-    }
-]
+[1, "money", 2, "show", { three: "to", get ready: "go cat go" }]
 db> print/b h
 $9 = [object Array]
-{
-    "0": 1,
-    "1": "money",
-    "2": 2,
-    "3": "show",
-    "4": "(...)",
-    "length": 5
-}
+[object Array]
 db> print/p h
 $10 = [object Array]
-[
-    1,
-    "money",
-    2,
-    "show",
-    {
-        "three": "to",
-        "get ready": "go cat go"
-    }
-]
+[1, "money", 2, "show", { three: "to", get ready: "go cat go" }]
 db> p i
 $11 = [object Object]
-{
-    "some": "plain object",
-    "that": "has keys"
-}
+{ some: "plain object", that: "has keys" }
 db> p/b i
 $12 = [object Object]
-{
-    "some": "plain object",
-    "that": "has keys"
-}
+[object Object]
 db> p j
 $13 = [object Set]
 {}
 db> p k
 $14 = [object Function]
+[ Function: J ]
 db> p/b k
 $15 = [object Function]
-{
-    "prototype": "(...)",
-    "length": 0,
-    "name": "J"
-}
+[object Function]
 db> p l
 $16 = [object GObject_Object]
 [object instance wrapper GIName:GObject.Object jsobj@0xADDR native@0xADDR]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]