r291429 - clang-format: [JS] fix broken test.

Martin Probst via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 9 01:00:58 PST 2017


Author: mprobst
Date: Mon Jan  9 03:00:58 2017
New Revision: 291429

URL: http://llvm.org/viewvc/llvm-project?rev=291429&view=rev
Log:
clang-format: [JS] fix broken test.

Modified:
    cfe/trunk/unittests/Format/FormatTestJS.cpp

Modified: cfe/trunk/unittests/Format/FormatTestJS.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTestJS.cpp?rev=291429&r1=291428&r2=291429&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTestJS.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTestJS.cpp Mon Jan  9 03:00:58 2017
@@ -859,7 +859,9 @@ TEST_F(FormatTestJS, AutomaticSemicolonI
                "a = null\n"
                "  return   1");
   verifyFormat(
-      "x = {a: 1}\n"
+      "x = {\n"
+      "  a: 1\n"
+      "}\n"
       "class Y {}",
       "  x  =  {a  : 1}\n"
       "   class  Y {  }");




More information about the cfe-commits mailing list