aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-08-24 11:39:57 +1000
committerNeil <nyamatongwe@gmail.com>2021-08-24 11:39:57 +1000
commitdc0398d650e75efe9641f0c48d630f2c2027281a (patch)
tree83819a98c36c4b1c6a011d9524e26eb5b87da3d3 /test
parentf756e89f53b407432c7db7c4134bfdb8af94d964 (diff)
downloadscintilla-mirror-dc0398d650e75efe9641f0c48d630f2c2027281a.tar.gz
Remove line end white space.
Diffstat (limited to 'test')
-rw-r--r--test/simpleTests.py18
-rw-r--r--test/unit/testCellBuffer.cxx4
-rw-r--r--test/unit/testDocument.cxx4
-rw-r--r--test/win32Tests.py2
4 files changed, 14 insertions, 14 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py
index 2b8b7cdd8..0bf082438 100644
--- a/test/simpleTests.py
+++ b/test/simpleTests.py
@@ -2005,7 +2005,7 @@ class TestElements(unittest.TestCase):
def tearDown(self):
pass
-
+
def ElementColour(self, element):
# & 0xffffffff prevents sign extension issues
return self.ed.GetElementColour(element) & 0xffffffff
@@ -2062,14 +2062,14 @@ class TestElements(unittest.TestCase):
self.assertEquals(self.ed.SelectionLayer, self.ed.SC_LAYER_OVER_TEXT)
self.ed.SelectionLayer = self.ed.SC_LAYER_BASE
self.assertEquals(self.ed.SelectionLayer, self.ed.SC_LAYER_BASE)
-
+
def testCaretLine(self):
# Newer Layer / ElementColour API
self.assertEquals(self.ed.CaretLineLayer, 0)
self.assertFalse(self.ed.GetElementIsSet(self.ed.SC_ELEMENT_CARET_LINE_BACK))
self.assertEquals(self.ed.CaretLineFrame, 0)
self.assertFalse(self.ed.CaretLineVisibleAlways)
-
+
self.ed.CaretLineLayer = 2
self.assertEquals(self.ed.CaretLineLayer, 2)
self.ed.CaretLineFrame = 2
@@ -2078,7 +2078,7 @@ class TestElements(unittest.TestCase):
self.assertTrue(self.ed.CaretLineVisibleAlways)
self.ed.SetElementColour(self.ed.SC_ELEMENT_CARET_LINE_BACK, self.testColourAlpha)
self.assertEquals(self.ElementColour(self.ed.SC_ELEMENT_CARET_LINE_BACK), self.testColourAlpha)
-
+
self.RestoreCaretLine()
def testCaretLineLayerDiscouraged(self):
@@ -2104,13 +2104,13 @@ class TestElements(unittest.TestCase):
backColourTranslucent = backColour | (alpha << 24)
self.assertEquals(self.ElementColour(self.ed.SC_ELEMENT_CARET_LINE_BACK), backColourTranslucent)
self.assertEquals(self.ed.CaretLineLayer, 2)
-
+
self.ed.CaretLineBackAlpha = 0x100
self.assertEquals(self.ed.CaretLineBackAlpha, 0x100)
self.assertEquals(self.ed.CaretLineLayer, 0) # SC_ALPHA_NOALPHA moved to base layer
-
+
self.RestoreCaretLine()
-
+
# Try other orders
self.ed.CaretLineBackAlpha = 0x100
@@ -2135,7 +2135,7 @@ class TestElements(unittest.TestCase):
self.assertFalse(self.ed.GetElementIsSet(self.ed.SC_ELEMENT_HOT_SPOT_ACTIVE_BACK))
self.assertEquals(self.ed.HotspotActiveFore, 0)
self.assertEquals(self.ed.HotspotActiveBack, 0)
-
+
testColour = 0x804020
resetColour = 0x112233 # Doesn't get set
self.ed.SetHotspotActiveFore(1, testColour)
@@ -2146,7 +2146,7 @@ class TestElements(unittest.TestCase):
self.assertEquals(self.ed.HotspotActiveFore, 0)
self.assertFalse(self.ed.GetElementIsSet(self.ed.SC_ELEMENT_HOT_SPOT_ACTIVE))
self.assertEquals(self.ElementColour(self.ed.SC_ELEMENT_HOT_SPOT_ACTIVE), 0)
-
+
translucentColour = 0x50403020
self.ed.SetElementColour(self.ed.SC_ELEMENT_HOT_SPOT_ACTIVE, translucentColour)
self.assertEquals(self.ElementColour(self.ed.SC_ELEMENT_HOT_SPOT_ACTIVE), translucentColour)
diff --git a/test/unit/testCellBuffer.cxx b/test/unit/testCellBuffer.cxx
index b48e44bb9..ef7db099b 100644
--- a/test/unit/testCellBuffer.cxx
+++ b/test/unit/testCellBuffer.cxx
@@ -274,7 +274,7 @@ TEST_CASE("CharacterIndex") {
REQUIRE(cb.IndexLineStart(4, LineCharacterIndexType::Utf32) == 7);
REQUIRE(cb.IndexLineStart(5, LineCharacterIndexType::Utf32) == 7);
- // Insert a valid 3-byte UTF-8 character at start ->
+ // Insert a valid 3-byte UTF-8 character at start ->
// "\xE2\x82\xACa\n\xF0\x90\x8D\x88\nz\n\n" 5 lines
const char *euro = "\xE2\x82\xAC";
@@ -294,7 +294,7 @@ TEST_CASE("CharacterIndex") {
REQUIRE(cb.IndexLineStart(4, LineCharacterIndexType::Utf32) == 8);
REQUIRE(cb.IndexLineStart(5, LineCharacterIndexType::Utf32) == 8);
- // Insert a lone lead byte implying a 3 byte character at start of line 2 ->
+ // Insert a lone lead byte implying a 3 byte character at start of line 2 ->
// "\xE2\x82\xACa\n\EF\xF0\x90\x8D\x88\nz\n\n" 5 lines
// Should be treated as a single byte character
diff --git a/test/unit/testDocument.cxx b/test/unit/testDocument.cxx
index 809647e19..41e3907ae 100644
--- a/test/unit/testDocument.cxx
+++ b/test/unit/testDocument.cxx
@@ -332,7 +332,7 @@ TEST_CASE("Document") {
REQUIRE(location == 2);
location = doc.document.FindText(0, 2, finding932.c_str(), FindOption::None, &lengthFinding);
REQUIRE(location == -1);
- // Can not test case mapping of double byte text as folder available here does not implement this
+ // Can not test case mapping of double byte text as folder available here does not implement this
}
SECTION("GetCharacterAndWidth DBCS") {
@@ -342,7 +342,7 @@ TEST_CASE("Document") {
const Sci::Position length = doc.InsertString(0, "H\x84\xff\x84H", 5);
// This text is invalid in code page 932.
// A reasonable interpretation is as 4 items: 2 characters and 2 character fragments
- // The last item is a 2-byte CYRILLIC CAPITAL LETTER ZE character
+ // The last item is a 2-byte CYRILLIC CAPITAL LETTER ZE character
// H [84] [FF] ZE
REQUIRE(5 == length);
REQUIRE(5 == doc.Length());
diff --git a/test/win32Tests.py b/test/win32Tests.py
index d47ed66db..974f6ceae 100644
--- a/test/win32Tests.py
+++ b/test/win32Tests.py
@@ -113,7 +113,7 @@ class TestWins(unittest.TestCase):
value = self.TextValue()
self.assertEquals(len(value), 3)
self.assertEquals(value, katakanaMiddleDot)
-
+
# This is even less valid Shift-JIS
tu8 = b'[\xff]'
self.SetText(tu8)