| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" | 9 #include "chrome/browser/spellchecker/spellcheck_platform_mac.h" |
| 10 #include "chrome/common/spellcheck_result.h" | 10 #include "chrome/common/spellcheck_result.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 {"awfull", "awful"}, | 129 {"awfull", "awful"}, |
| 130 {"ballance", "balance"}, | 130 {"ballance", "balance"}, |
| 131 {"basicly", "basically"}, | 131 {"basicly", "basically"}, |
| 132 {"becuase", "because"}, | 132 {"becuase", "because"}, |
| 133 {"becomeing", "becoming"}, | 133 {"becomeing", "becoming"}, |
| 134 {"befor", "before"}, | 134 {"befor", "before"}, |
| 135 {"begining", "beginning"}, | 135 {"begining", "beginning"}, |
| 136 {"beleive", "believe"}, | 136 {"beleive", "believe"}, |
| 137 {"bellweather", "bellwether"}, | 137 {"bellweather", "bellwether"}, |
| 138 {"benifit", "benefit"}, | 138 {"benifit", "benefit"}, |
| 139 {"bouy", "buoy"}, | 139 // This particular spelling correction was removed in OSX 10.10. Replacing |
| 140 // it with another spelling correction that also works on older OSes. |
| 141 // {"bouy", "buoy"}, |
| 142 {"bouy", "body"}, |
| 140 {"briliant", "brilliant"}, | 143 {"briliant", "brilliant"}, |
| 141 {"burgler", "burglar"}, | 144 {"burgler", "burglar"}, |
| 142 {"camoflage", "camouflage"}, | 145 {"camoflage", "camouflage"}, |
| 143 {"carefull", "careful"}, | 146 {"carefull", "careful"}, |
| 144 {"Carribean", "Caribbean"}, | 147 {"Carribean", "Caribbean"}, |
| 145 {"catagory", "category"}, | 148 {"catagory", "category"}, |
| 146 {"cauhgt", "caught"}, | 149 {"cauhgt", "caught"}, |
| 147 {"cieling", "ceiling"}, | 150 {"cieling", "ceiling"}, |
| 148 {"cemetary", "cemetery"}, | 151 {"cemetary", "cemetery"}, |
| 149 {"certin", "certain"}, | 152 {"certin", "certain"}, |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // RequestTextCheck results. | 382 // RequestTextCheck results. |
| 380 TEST_F(SpellcheckMacTest, SpellCheckIgnoresOrthography) { | 383 TEST_F(SpellcheckMacTest, SpellCheckIgnoresOrthography) { |
| 381 base::string16 test_string(base::ASCIIToUTF16("Icland is awesome.")); | 384 base::string16 test_string(base::ASCIIToUTF16("Icland is awesome.")); |
| 382 spellcheck_mac::RequestTextCheck(0, test_string, callback_); | 385 spellcheck_mac::RequestTextCheck(0, test_string, callback_); |
| 383 WaitForCallback(); | 386 WaitForCallback(); |
| 384 EXPECT_TRUE(callback_finished_); | 387 EXPECT_TRUE(callback_finished_); |
| 385 EXPECT_EQ(1U, results_.size()); | 388 EXPECT_EQ(1U, results_.size()); |
| 386 } | 389 } |
| 387 | 390 |
| 388 } // namespace | 391 } // namespace |
| OLD | NEW |