Bug 1320173 - Generate stubs in order to make mocha tests pass. r=nchevobbe
authorNicolas Chevobbe <chevobbe.nicolas@gmail.com>
Thu, 24 Nov 2016 19:48:55 +0100
changeset 324204 13406705508aea5243e69b42ab097c1e5948d1cf
parent 324203 fe57f5f7b49d41f66f63427770a74891beb84f9b
child 324205 c55ce97752965e67ce78fa6ddefbb23f13168da0
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersnchevobbe
bugs1320173
milestone53.0a1
Bug 1320173 - Generate stubs in order to make mocha tests pass. r=nchevobbe MozReview-Commit-ID: IVQ7xTAV5kE
devtools/client/webconsole/new-console-output/test/fixtures/stubs/evaluationResult.js
--- a/devtools/client/webconsole/new-console-output/test/fixtures/stubs/evaluationResult.js
+++ b/devtools/client/webconsole/new-console-output/test/fixtures/stubs/evaluationResult.js
@@ -47,19 +47,23 @@ stubPreparedMessages.set("asdf()", new C
 	"timeStamp": 1479159921377,
 	"type": "result",
 	"level": "error",
 	"messageText": "ReferenceError: asdf is not defined",
 	"parameters": {
 		"type": "undefined"
 	},
 	"repeat": 1,
-	"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"timeStamp\":1479159921377,\"type\":\"result\",\"level\":\"error\",\"messageText\":\"ReferenceError: asdf is not defined\",\"parameters\":{\"type\":\"undefined\"},\"repeatId\":null,\"stacktrace\":null,\"frame\":null,\"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}",
+	"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"timeStamp\":1479159921377,\"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}",
 	"stacktrace": null,
-	"frame": 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
 }));
 
 stubPreparedMessages.set("1 + @", new ConsoleMessage({
 	"id": "1",
 	"allowRepeating": true,
@@ -67,19 +71,23 @@ stubPreparedMessages.set("1 + @", new Co
 	"timeStamp": 1479159921399,
 	"type": "result",
 	"level": "error",
 	"messageText": "SyntaxError: illegal character",
 	"parameters": {
 		"type": "undefined"
 	},
 	"repeat": 1,
-	"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"timeStamp\":1479159921399,\"type\":\"result\",\"level\":\"error\",\"messageText\":\"SyntaxError: illegal character\",\"parameters\":{\"type\":\"undefined\"},\"repeatId\":null,\"stacktrace\":null,\"frame\":null,\"groupId\":null,\"userProvidedStyles\":null}",
+	"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"timeStamp\":1479159921399,\"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}",
 	"stacktrace": null,
-	"frame": null,
+	"frame": {
+		"source": "debugger eval code",
+		"line": 1,
+		"column": 4
+	},
 	"groupId": null,
 	"userProvidedStyles": null
 }));
 
 
 stubPackets.set("new Date(0)", {
 	"from": "server1.conn0.child1/consoleActor2",
 	"input": "new Date(0)",
@@ -123,17 +131,21 @@ stubPackets.set("asdf()", {
 			"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": null,
+	"frame": {
+		"source": "debugger eval code",
+		"line": 1,
+		"column": 1
+	},
 	"helperResult": null
 });
 
 stubPackets.set("1 + @", {
 	"from": "server1.conn0.child1/consoleActor2",
 	"input": "1 + @",
 	"result": {
 		"type": "undefined"
@@ -153,17 +165,21 @@ stubPackets.set("1 + @", {
 			"message": "illegal character",
 			"stack": "",
 			"fileName": "debugger eval code",
 			"lineNumber": 1,
 			"columnNumber": 4
 		}
 	},
 	"exceptionMessage": "SyntaxError: illegal character",
-	"frame": null,
+	"frame": {
+		"source": "debugger eval code",
+		"line": 1,
+		"column": 4
+	},
 	"helperResult": null
 });
 
 
 module.exports = {
   stubPreparedMessages,
   stubPackets,
 }
\ No newline at end of file