Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1652)

Unified Diff: mojom/mojom_parser/formatter/printer_test.go

Issue 1750183002: Small formatter fixes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojom/mojom_parser/formatter/printer.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/mojom_parser/formatter/printer_test.go
diff --git a/mojom/mojom_parser/formatter/printer_test.go b/mojom/mojom_parser/formatter/printer_test.go
index 296e01334db9856a65a699532dd5d4ccffcc72a5..77877cf31421019d03747c772c7a8623d35bd426 100644
--- a/mojom/mojom_parser/formatter/printer_test.go
+++ b/mojom/mojom_parser/formatter/printer_test.go
@@ -89,7 +89,7 @@ func TestWriteAttributes(t *testing.T) {
p := getNewPrinter()
p.writeAttributes(attrs)
- expected := "[key1=10,\nkey2=20]\n"
+ expected := "[key1=10,\n key2=20]\n"
checkEq(t, expected, p.result())
}
@@ -101,7 +101,7 @@ func TestWriteAttributesSingleLine(t *testing.T) {
p := getNewPrinter()
p.writeAttributesSingleLine(attrs)
- expected := "[key1=10, key2=20]"
+ expected := "[key1=10, key2=20] "
checkEq(t, expected, p.result())
}
@@ -313,7 +313,7 @@ func TestWriteMojomStructEmpty(t *testing.T) {
declData := mojom.DeclData("", nil, lexer.Token{Text: "FooStruct"}, nil)
mojomStruct := mojom.NewMojomStruct(declData)
- expected := "struct FooStruct{};"
+ expected := "struct FooStruct {};"
p := getNewPrinter()
p.writeDeclaredObject(mojomStruct)
« no previous file with comments | « mojom/mojom_parser/formatter/printer.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698