Commit 135718ab authored by cfleizach@apple.com's avatar cfleizach@apple.com

Fix spelling error in style checker: beggining

https://bugs.webkit.org/show_bug.cgi?id=125347

Reviewed by Anders Carlsson.

* Scripts/webkitpy/style/checkers/cpp.py:
(check_member_initialization_list):
* Scripts/webkitpy/style/checkers/cpp_unittest.py:
(WebKitStyleTest.test_member_initialization_list):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d18fefdc
2013-12-06 Chris Fleizach <cfleizach@apple.com>
Fix spelling error in style checker: beggining
https://bugs.webkit.org/show_bug.cgi?id=125347
Reviewed by Anders Carlsson.
* Scripts/webkitpy/style/checkers/cpp.py:
(check_member_initialization_list):
* Scripts/webkitpy/style/checkers/cpp_unittest.py:
(WebKitStyleTest.test_member_initialization_list):
2013-12-06 Lukasz Gajowy <l.gajowy@samsung.com>
[ATK] Missing aria roles mappings
......
......@@ -2008,7 +2008,7 @@ def check_member_initialization_list(clean_lines, line_number, error):
'Wrong number of spaces before statement. (expected: %d)' % len(inner_indentation))
if search(r'\S\s*,', line):
error(line_number, 'whitespace/init', 4,
'Comma should be at the beggining of the line in a member initialization list.')
'Comma should be at the beginning of the line in a member initialization list.')
# To avoid infinite loop, if can't find the end of member initialization list
if line_number < len(raw) - 1:
......
......@@ -4913,7 +4913,7 @@ class WebKitStyleTest(CppStyleTestBase):
{ }''',
['Should be indented on a separate line, with the colon or comma first on that line.'
' [whitespace/indent] [4]',
'Comma should be at the beggining of the line in a member initialization list.'
'Comma should be at the beginning of the line in a member initialization list.'
' [whitespace/init] [4]'])
self.assert_multi_line_lint('''\
MyClass::MyClass(Document* doc) :MySuperClass()
......@@ -4949,7 +4949,7 @@ class WebKitStyleTest(CppStyleTestBase):
MyClass::MyClass(Document* doc)
: MySuperClass() , m_doc(0)
{ }''',
'Comma should be at the beggining of the line in a member initialization list.'
'Comma should be at the beginning of the line in a member initialization list.'
' [whitespace/init] [4]')
self.assert_multi_line_lint('''\
class MyClass : public Goo {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment