summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/new-console-output/test/fixtures/stubs/evaluationResult.js
blob: 0682d913427b722d84cd4cbd490b11e6ae2a1339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/* Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

/*
 * THIS FILE IS AUTOGENERATED. DO NOT MODIFY BY HAND. RUN TESTS IN FIXTURES/ TO UPDATE.
 */

const { ConsoleMessage, NetworkEventMessage } = require("devtools/client/webconsole/new-console-output/types");

let stubPreparedMessages = new Map();
let stubPackets = new Map();
stubPreparedMessages.set("new Date(0)", new ConsoleMessage({
	"id": "1",
	"allowRepeating": true,
	"source": "javascript",
	"type": "result",
	"level": "log",
	"parameters": {
		"type": "object",
		"actor": "server1.conn0.child1/obj30",
		"class": "Date",
		"extensible": true,
		"frozen": false,
		"sealed": false,
		"ownPropertyLength": 0,
		"preview": {
			"timestamp": 0
		}
	},
	"repeat": 1,
	"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"type\":\"result\",\"level\":\"log\",\"parameters\":{\"type\":\"object\",\"actor\":\"server1.conn0.child1/obj30\",\"class\":\"Date\",\"extensible\":true,\"frozen\":false,\"sealed\":false,\"ownPropertyLength\":0,\"preview\":{\"timestamp\":0}},\"repeatId\":null,\"stacktrace\":null,\"frame\":null,\"groupId\":null,\"userProvidedStyles\":null,\"notes\":null}",
	"stacktrace": null,
	"frame": null,
	"groupId": null,
	"userProvidedStyles": null,
	"notes": null
}));

stubPreparedMessages.set("asdf()", new ConsoleMessage({
	"id": "1",
	"allowRepeating": true,
	"source": "javascript",
	"type": "result",
	"level": "error",
	"messageText": "ReferenceError: asdf is not defined",
	"parameters": {
		"type": "undefined"
	},
	"repeat": 1,
	"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"type\":\"result\",\"level\":\"error\",\"messageText\":\"ReferenceError: asdf is not defined\",\"parameters\":{\"type\":\"undefined\"},\"repeatId\":null,\"stacktrace\":null,\"frame\":{\"source\":\"debugger eval code\",\"line\":1,\"column\":1},\"groupId\":null,\"exceptionDocURL\":\"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Not_defined?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default\",\"userProvidedStyles\":null,\"notes\":null}",
	"stacktrace": null,
	"frame": {
		"source": "debugger eval code",
		"line": 1,
		"column": 1
	},
	"groupId": null,
	"exceptionDocURL": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Not_defined?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default",
	"userProvidedStyles": null,
	"notes": null
}));

stubPreparedMessages.set("1 + @", new ConsoleMessage({
	"id": "1",
	"allowRepeating": true,
	"source": "javascript",
	"type": "result",
	"level": "error",
	"messageText": "SyntaxError: illegal character",
	"parameters": {
		"type": "undefined"
	},
	"repeat": 1,
	"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"type\":\"result\",\"level\":\"error\",\"messageText\":\"SyntaxError: illegal character\",\"parameters\":{\"type\":\"undefined\"},\"repeatId\":null,\"stacktrace\":null,\"frame\":{\"source\":\"debugger eval code\",\"line\":1,\"column\":4},\"groupId\":null,\"userProvidedStyles\":null,\"notes\":null}",
	"stacktrace": null,
	"frame": {
		"source": "debugger eval code",
		"line": 1,
		"column": 4
	},
	"groupId": null,
	"userProvidedStyles": null,
	"notes": null
}));

stubPackets.set("new Date(0)", {
	"from": "server1.conn0.child1/consoleActor2",
	"input": "new Date(0)",
	"result": {
		"type": "object",
		"actor": "server1.conn0.child1/obj30",
		"class": "Date",
		"extensible": true,
		"frozen": false,
		"sealed": false,
		"ownPropertyLength": 0,
		"preview": {
			"timestamp": 0
		}
	},
	"timestamp": 1476573073424,
	"exception": null,
	"frame": null,
	"helperResult": null,
	"notes": null
});

stubPackets.set("asdf()", {
	"from": "server1.conn0.child1/consoleActor2",
	"input": "asdf()",
	"result": {
		"type": "undefined"
	},
	"timestamp": 1476573073442,
	"exception": {
		"type": "object",
		"actor": "server1.conn0.child1/obj32",
		"class": "Error",
		"extensible": true,
		"frozen": false,
		"sealed": false,
		"ownPropertyLength": 4,
		"preview": {
			"kind": "Error",
			"name": "ReferenceError",
			"message": "asdf is not defined",
			"stack": "@debugger eval code:1:1\n",
			"fileName": "debugger eval code",
			"lineNumber": 1,
			"columnNumber": 1
		}
	},
	"exceptionMessage": "ReferenceError: asdf is not defined",
	"exceptionDocURL": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Not_defined?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default",
	"frame": {
		"source": "debugger eval code",
		"line": 1,
		"column": 1
	},
	"helperResult": null,
	"notes": null
});

stubPackets.set("1 + @", {
	"from": "server1.conn0.child1/consoleActor2",
	"input": "1 + @",
	"result": {
		"type": "undefined"
	},
	"timestamp": 1478755616654,
	"exception": {
		"type": "object",
		"actor": "server1.conn0.child1/obj33",
		"class": "Error",
		"extensible": true,
		"frozen": false,
		"sealed": false,
		"ownPropertyLength": 4,
		"preview": {
			"kind": "Error",
			"name": "SyntaxError",
			"message": "illegal character",
			"stack": "",
			"fileName": "debugger eval code",
			"lineNumber": 1,
			"columnNumber": 4
		}
	},
	"exceptionMessage": "SyntaxError: illegal character",
	"frame": {
		"source": "debugger eval code",
		"line": 1,
		"column": 4
	},
	"helperResult": null,
	"notes": null
});

module.exports = {
  stubPreparedMessages,
  stubPackets,
};