| OLD | NEW |
| 1 # -*- coding: utf-8; -*- | 1 # -*- coding: utf-8; -*- |
| 2 # | 2 # |
| 3 # Copyright (C) 2011 Google Inc. All rights reserved. | 3 # Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 # Copyright (C) 2009 Torch Mobile Inc. | 4 # Copyright (C) 2009 Torch Mobile Inc. |
| 5 # Copyright (C) 2009 Apple Inc. All rights reserved. | 5 # Copyright (C) 2009 Apple Inc. All rights reserved. |
| 6 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) | 6 # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) |
| 7 # | 7 # |
| 8 # Redistribution and use in source and binary forms, with or without | 8 # Redistribution and use in source and binary forms, with or without |
| 9 # modification, are permitted provided that the following conditions are | 9 # modification, are permitted provided that the following conditions are |
| 10 # met: | 10 # met: |
| (...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1595 self.assert_multi_line_lint( | 1595 self.assert_multi_line_lint( |
| 1596 'ACCESSOR_GETTER(MessageEventPorts) {', | 1596 'ACCESSOR_GETTER(MessageEventPorts) {', |
| 1597 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | 1597 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') |
| 1598 self.assert_multi_line_lint( | 1598 self.assert_multi_line_lint( |
| 1599 'int foo() {', | 1599 'int foo() {', |
| 1600 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | 1600 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') |
| 1601 self.assert_multi_line_lint( | 1601 self.assert_multi_line_lint( |
| 1602 'int foo() const {', | 1602 'int foo() const {', |
| 1603 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | 1603 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') |
| 1604 self.assert_multi_line_lint( | 1604 self.assert_multi_line_lint( |
| 1605 'int foo() const OVERRIDE {', | |
| 1606 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | |
| 1607 self.assert_multi_line_lint( | |
| 1608 'int foo() OVERRIDE {', | |
| 1609 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | |
| 1610 self.assert_multi_line_lint( | |
| 1611 'int foo() override {', | 1605 'int foo() override {', |
| 1612 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | 1606 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') |
| 1613 self.assert_multi_line_lint( | 1607 self.assert_multi_line_lint( |
| 1614 'int foo() FINAL {', | |
| 1615 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | |
| 1616 self.assert_multi_line_lint( | |
| 1617 'int foo() final {', | 1608 'int foo() final {', |
| 1618 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') | 1609 'Place brace on its own line for function definitions. [whitespace/
braces] [4]') |
| 1619 self.assert_multi_line_lint( | 1610 self.assert_multi_line_lint( |
| 1620 'int foo() const\n' | 1611 'int foo() const\n' |
| 1621 '{\n' | 1612 '{\n' |
| 1622 '}\n', | 1613 '}\n', |
| 1623 '') | 1614 '') |
| 1624 self.assert_multi_line_lint( | 1615 self.assert_multi_line_lint( |
| 1625 'int foo() OVERRIDE\n' | |
| 1626 '{\n' | |
| 1627 '}\n', | |
| 1628 '') | |
| 1629 self.assert_multi_line_lint( | |
| 1630 'int foo() override\n' | 1616 'int foo() override\n' |
| 1631 '{\n' | 1617 '{\n' |
| 1632 '}\n', | 1618 '}\n', |
| 1633 '') | 1619 '') |
| 1634 self.assert_multi_line_lint( | 1620 self.assert_multi_line_lint( |
| 1635 'int foo() FINAL\n' | |
| 1636 '{\n' | |
| 1637 '}\n', | |
| 1638 '') | |
| 1639 self.assert_multi_line_lint( | |
| 1640 'int foo() final\n' | 1621 'int foo() final\n' |
| 1641 '{\n' | 1622 '{\n' |
| 1642 '}\n', | 1623 '}\n', |
| 1643 '') | 1624 '') |
| 1644 self.assert_multi_line_lint( | 1625 self.assert_multi_line_lint( |
| 1645 'if (condition\n' | 1626 'if (condition\n' |
| 1646 ' && condition2\n' | 1627 ' && condition2\n' |
| 1647 ' && condition3) {\n' | 1628 ' && condition3) {\n' |
| 1648 '}\n', | 1629 '}\n', |
| 1649 '') | 1630 '') |
| (...skipping 3570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5220 def test_ne(self): | 5201 def test_ne(self): |
| 5221 """Test __ne__ inequality function.""" | 5202 """Test __ne__ inequality function.""" |
| 5222 checker1 = self._checker() | 5203 checker1 = self._checker() |
| 5223 checker2 = self._checker() | 5204 checker2 = self._checker() |
| 5224 | 5205 |
| 5225 # != calls __ne__. | 5206 # != calls __ne__. |
| 5226 # By default, __ne__ always returns true on different objects. | 5207 # By default, __ne__ always returns true on different objects. |
| 5227 # Thus, just check the distinguishing case to verify that the | 5208 # Thus, just check the distinguishing case to verify that the |
| 5228 # code defines __ne__. | 5209 # code defines __ne__. |
| 5229 self.assertFalse(checker1 != checker2) | 5210 self.assertFalse(checker1 != checker2) |
| OLD | NEW |