<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>30645</bug_id>
          
          <creation_ts>2009-10-21 15:25:42 -0700</creation_ts>
          <short_desc>REGRESSION: 2 failures in run-webkit-unittests</short_desc>
          <delta_ts>2009-10-26 13:54:04 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>carol</cc>
    
    <cc>commit-queue</cc>
    
    <cc>levin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>156661</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-21 15:25:42 -0700</bug_when>
    <thetext>======================================================================
FAIL: test_braces (modules.cpp_style_unittest.WebKitStyleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/modules/cpp_style_unittest.py&quot;, line 3309, in test_braces
    &apos;Code inside a namespace should not be indented.  [whitespace/indent] [4]&apos;)
  File &quot;/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/modules/cpp_style_unittest.py&quot;, line 219, in assert_multi_line_lint
    self.assertEquals(expected_message, self.perform_multi_line_lint(code, file_name))
AssertionError: &apos;Code inside a namespace should not be indented.  [whitespace/indent] [4]&apos; != &apos;&apos;

======================================================================
FAIL: test_indentation (modules.cpp_style_unittest.WebKitStyleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/modules/cpp_style_unittest.py&quot;, line 2823, in test_indentation
    &apos;foo.h&apos;)
  File &quot;/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/modules/cpp_style_unittest.py&quot;, line 219, in assert_multi_line_lint
    self.assertEquals(expected_message, self.perform_multi_line_lint(code, file_name))
AssertionError: &apos;Code inside a namespace should not be indented.  [whitespace/indent] [4]&apos; != &apos;&apos;

----------------------------------------------------------------------
Ran 166 tests in 135.229s

FAILED (failures=2)

Probably caused from http://trac.webkit.org/changeset/49690</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156680</commentid>
    <comment_count>1</comment_count>
      <attachid>41614</attachid>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-10-21 16:01:23 -0700</bug_when>
    <thetext>Created attachment 41614
Proposed Patch

Added back some spaces that were missing from test cases and fixed the expected result in one other.
I do not know how these test cases got in there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156682</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-10-21 16:06:44 -0700</bug_when>
    <thetext>I thought that the new style was not to indent code inside namespaces?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156685</commentid>
    <comment_count>3</comment_count>
      <attachid>41614</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-10-21 16:07:21 -0700</bug_when>
    <thetext>Comment on attachment 41614
Proposed Patch

&gt;          self.assert_multi_line_lint(
&gt;              &apos;namespace WebCore {\n&apos;
&gt;              &apos;#if 0\n&apos;
&gt; -            &apos;class Document {\n&apos;
&gt; +            &apos;    class Document {\n&apos;
&gt;              &apos;};\n&apos;

Really? Indent the line starting the class definition but not the line ending it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156766</commentid>
    <comment_count>4</comment_count>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-10-21 20:34:43 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; I thought that the new style was not to indent code inside namespaces?

Yes, you are right. And that is what the cpp_style verifies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156771</commentid>
    <comment_count>5</comment_count>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-10-21 20:40:36 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 41614 [details])
&gt; &gt;          self.assert_multi_line_lint(
&gt; &gt;              &apos;namespace WebCore {\n&apos;
&gt; &gt;              &apos;#if 0\n&apos;
&gt; &gt; -            &apos;class Document {\n&apos;
&gt; &gt; +            &apos;    class Document {\n&apos;
&gt; &gt;              &apos;};\n&apos;
&gt; 
&gt; Really? Indent the line starting the class definition but not the line ending
&gt; it?

This code has bad style, but currently we do not have a style checker that is able to check indentation other than for the following cases:
1. First level inside a namespace (should be 0).
2. Indentation should be a multiple of 4 columns.
The purpose of the test above was to verify that we do not complain about the indentation of the inner class.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156777</commentid>
    <comment_count>6</comment_count>
    <who name="Carol Szabo">carol</who>
    <bug_when>2009-10-21 20:46:39 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 41614 [details])
&gt; &gt;          self.assert_multi_line_lint(
&gt; &gt;              &apos;namespace WebCore {\n&apos;
&gt; &gt;              &apos;#if 0\n&apos;
&gt; &gt; -            &apos;class Document {\n&apos;
&gt; &gt; +            &apos;    class Document {\n&apos;
&gt; &gt;              &apos;};\n&apos;
&gt; 
&gt; Really? Indent the line starting the class definition but not the line ending
&gt; it?

I take my previous comment back. The correct style as I read the style document is not to indent the class definition. This is bad style and the checker should complain.
I agree that this patch is hard to review because it does not give enough context. The next line in the file says that the checker should complain about the indented class definition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157902</commentid>
    <comment_count>7</comment_count>
      <attachid>41614</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-26 13:53:57 -0700</bug_when>
    <thetext>Comment on attachment 41614
Proposed Patch

Clearing flags on attachment: 41614

Committed r50091: &lt;http://trac.webkit.org/changeset/50091&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157904</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2009-10-26 13:54:04 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>41614</attachid>
            <date>2009-10-21 16:01:23 -0700</date>
            <delta_ts>2009-10-26 13:53:56 -0700</delta_ts>
            <desc>Proposed Patch</desc>
            <filename>patchFor30645-1.patch</filename>
            <type>text/plain</type>
            <size>2153</size>
            <attacher name="Carol Szabo">carol</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBXZWJLaXRUb29scy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDQ5OTI0KQorKysgV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMDktMTAtMjEgIENhcm9sIFN6YWJvICA8Y2Fy
b2wuc3phYm9Abm9raWEuY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEp
LgorCisgICAgICAgIFJFR1JFU1NJT046IDIgZmFpbHVyZXMgaW4gcnVuLXdlYmtpdC11bml0dGVz
dHMKKyA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2Zvby5oJykKICAgICAgICAgc2VsZi5hc3Nl
cnRfbXVsdGlfbGluZV9saW50KAogICAgICAgICAgICAgJ25hbWVzcGFjZSBPdXRlck5hbWVzcGFj
ZSB7XG4nCi0gICAgICAgICAgICAnbmFtZXNwYWNlIElubmVyTmFtZXNwYWNlIHtcbicKLSAgICAg
ICAgICAgICdjbGFzcyBEb2N1bWVudCB7XG4nCisgICAgICAgICAgICAnICAgIG5hbWVzcGFjZSBJ
bm5lck5hbWVzcGFjZSB7XG4nCisgICAgICAgICAgICAnICAgIGNsYXNzIERvY3VtZW50IHtcbicK
ICAgICAgICAgICAgICd9O1xuJwogICAgICAgICAgICAgJ307XG4nCiAgICAgICAgICAgICAnfScs
CkBAIC0yODMzLDcgKzI4MzMsNyBAQCBjbGFzcyBXZWJLaXRTdHlsZVRlc3QoQ3BwU3R5bGVUZXN0
QmFzZSk6CiAgICAgICAgIHNlbGYuYXNzZXJ0X211bHRpX2xpbmVfbGludCgKICAgICAgICAgICAg
ICduYW1lc3BhY2UgV2ViQ29yZSB7XG4nCiAgICAgICAgICAgICAnI2lmIDBcbicKLSAgICAgICAg
ICAgICdjbGFzcyBEb2N1bWVudCB7XG4nCisgICAgICAgICAgICAnICAgIGNsYXNzIERvY3VtZW50
IHtcbicKICAgICAgICAgICAgICd9O1xuJwogICAgICAgICAgICAgJyNlbmRpZlxuJwogICAgICAg
ICAgICAgJ30nLApAQCAtMzMwNiw3ICszMzA2LDcgQEAgY2xhc3MgV2ViS2l0U3R5bGVUZXN0KENw
cFN0eWxlVGVzdEJhc2UpOgogICAgICAgICAgICAgJ25hbWVzcGFjZSBXZWJDb3JlIHtcbicKICAg
ICAgICAgICAgICdpbnQgZm9vO1xuJwogICAgICAgICAgICAgJ307XG4nLAotICAgICAgICAgICAg
J0NvZGUgaW5zaWRlIGEgbmFtZXNwYWNlIHNob3VsZCBub3QgYmUgaW5kZW50ZWQuICBbd2hpdGVz
cGFjZS9pbmRlbnRdIFs0XScpCisgICAgICAgICAgICAnJykKICAgICAgICAgc2VsZi5hc3NlcnRf
bXVsdGlfbGluZV9saW50KAogICAgICAgICAgICAgJ2ZvciAoaW50IGkgPSAwOyBpIDwgMTA7IGkr
Kykge1xuJwogICAgICAgICAgICAgJyAgICBEb1NvbWV0aGluZygpO1xuJwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>