Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / Scripts / webkitpy / tool / bot / commitannouncer_unittest.py
index f60c35f..8b8df8c 100644 (file)
@@ -34,8 +34,7 @@ class CommitAnnouncerTest(unittest.TestCase):
         tool = MockTool()
         bot = CommitAnnouncer(tool, "test_password")
         self.assertEqual(
-           'authorABC@chromium.org committed "Commit test subject line" '
-           'http://crrev.com/123456 r456789',
+           'r456789 http://crrev.com/123456 authorABC@chromium.org committed "Commit test subject line"',
             bot._format_commit_detail("""\
 1234commit1234
 authorABC@chromium.org
@@ -53,9 +52,8 @@ git-svn-id: svn://svn.chromium.org/blink/trunk@456789 bbb929c8-8fbe-4397-9dbb-9b
 """))
 
         self.assertEqual(
-            'authorABC@chromium.org committed "Commit test subject line" '
-            'https://chromium.googlesource.com/chromium/blink/+/1234comm '
-            'r456789',
+            'r456789 https://chromium.googlesource.com/chromium/blink/+/1234comm '
+            'authorABC@chromium.org committed "Commit test subject line"',
             bot._format_commit_detail("""\
 1234commit1234
 authorABC@chromium.org
@@ -71,8 +69,7 @@ git-svn-id: svn://svn.chromium.org/blink/trunk@456789 bbb929c8-8fbe-4397-9dbb-9b
 """))
 
         self.assertEqual(
-            'authorABC@chromium.org committed "Commit test subject line" '
-            'http://crrev.com/123456 ',
+            'http://crrev.com/123456 authorABC@chromium.org committed "Commit test subject line"',
             bot._format_commit_detail("""\
 1234commit1234
 authorABC@chromium.org
@@ -88,8 +85,7 @@ Review URL: https://codereview.chromium.org/123456
 """))
 
         self.assertEqual(
-            'authorABC@chromium.org committed "Commit test subject line" '
-            'https://chromium.googlesource.com/chromium/blink/+/1234comm ',
+            'https://chromium.googlesource.com/chromium/blink/+/1234comm authorABC@chromium.org committed "Commit test subject line"',
             bot._format_commit_detail("""\
 1234commit1234
 authorABC@chromium.org
@@ -101,8 +97,7 @@ description.
 """))
 
         self.assertEqual(
-            'authorABC@chromium.org committed "Commit test subject line" '
-            'http://crrev.com/123456 r456789',
+            'r456789 http://crrev.com/123456 authorABC@chromium.org committed "Commit test subject line"',
             bot._format_commit_detail("""\
 1234commit1234
 authorABC@chromium.org
@@ -122,8 +117,7 @@ git-svn-id: svn://svn.chromium.org/blink/trunk@456789 bbb929c8-8fbe-4397-9dbb-9b
 """))
 
         self.assertEqual(
-           'authorABC@chromium.org committed "Commit test subject line" '
-           'http://crrev.com/123456 r456789 '
+           'r456789 http://crrev.com/123456 authorABC@chromium.org committed "Commit test subject line" '
            '\x037TBR=reviewerDEF@chromium.org\x03',
             bot._format_commit_detail("""\
 1234commit1234
@@ -143,8 +137,7 @@ git-svn-id: svn://svn.chromium.org/blink/trunk@456789 bbb929c8-8fbe-4397-9dbb-9b
 """))
 
         self.assertEqual(
-           'authorABC@chromium.org committed "Commit test subject line" '
-           'http://crrev.com/123456 r456789 '
+           'r456789 http://crrev.com/123456 authorABC@chromium.org committed "Commit test subject line" '
            '\x037NOTRY=true\x03',
             bot._format_commit_detail("""\
 1234commit1234
@@ -164,8 +157,7 @@ git-svn-id: svn://svn.chromium.org/blink/trunk@456789 bbb929c8-8fbe-4397-9dbb-9b
 """))
 
         self.assertEqual(
-           'authorABC@chromium.org committed "Commit test subject line" '
-           'http://crrev.com/123456 r456789 '
+           'r456789 http://crrev.com/123456 authorABC@chromium.org committed "Commit test subject line" '
            '\x037NOTRY=true TBR=reviewerDEF@chromium.org\x03',
             bot._format_commit_detail("""\
 1234commit1234
@@ -186,8 +178,7 @@ git-svn-id: svn://svn.chromium.org/blink/trunk@456789 bbb929c8-8fbe-4397-9dbb-9b
 """))
 
         self.assertEqual(
-           'authorABC@chromium.org committed "Commit test subject line" '
-           'http://crrev.com/123456 r456789 '
+           'r456789 http://crrev.com/123456 authorABC@chromium.org committed "Commit test subject line" '
            '\x037tbr=reviewerDEF@chromium.org, reviewerGHI@chromium.org, reviewerJKL@chromium.org notry=TRUE\x03',
             bot._format_commit_detail("""\
 1234commit1234