Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: test/cctest/test-liveedit.cc

Issue 2493002: - Remove [static] from methods in Zone and associated helpers. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 CompareStringsOneWay(s1, s2, expected_diff_parameter); 149 CompareStringsOneWay(s1, s2, expected_diff_parameter);
150 CompareStringsOneWay(s2, s1, expected_diff_parameter); 150 CompareStringsOneWay(s2, s1, expected_diff_parameter);
151 } 151 }
152 152
153 } // Anonymous namespace. 153 } // Anonymous namespace.
154 154
155 155
156 // --- T h e A c t u a l T e s t s 156 // --- T h e A c t u a l T e s t s
157 157
158 TEST(LiveEditDiffer) { 158 TEST(LiveEditDiffer) {
159 v8::internal::V8::Initialize(NULL);
159 CompareStrings("zz1zzz12zz123zzz", "zzzzzzzzzz", 6); 160 CompareStrings("zz1zzz12zz123zzz", "zzzzzzzzzz", 6);
160 CompareStrings("zz1zzz12zz123zzz", "zz0zzz0zz0zzz", 9); 161 CompareStrings("zz1zzz12zz123zzz", "zz0zzz0zz0zzz", 9);
161 CompareStrings("123456789", "987654321", 16); 162 CompareStrings("123456789", "987654321", 16);
162 CompareStrings("zzz", "yyy", 6); 163 CompareStrings("zzz", "yyy", 6);
163 CompareStrings("zzz", "zzz12", 2); 164 CompareStrings("zzz", "zzz12", 2);
164 CompareStrings("zzz", "21zzz", 2); 165 CompareStrings("zzz", "21zzz", 2);
165 CompareStrings("cat", "cut", 2); 166 CompareStrings("cat", "cut", 2);
166 CompareStrings("ct", "cut", 1); 167 CompareStrings("ct", "cut", 1);
167 CompareStrings("cat", "ct", 1); 168 CompareStrings("cat", "ct", 1);
168 CompareStrings("cat", "cat", 0); 169 CompareStrings("cat", "cat", 0);
169 CompareStrings("", "", 0); 170 CompareStrings("", "", 0);
170 CompareStrings("cat", "", 3); 171 CompareStrings("cat", "", 3);
171 CompareStrings("a cat", "a capybara", 7); 172 CompareStrings("a cat", "a capybara", 7);
172 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa", 173 CompareStrings("abbabababababaaabbabababababbabbbbbbbababa",
173 "bbbbabababbbabababbbabababababbabbababa"); 174 "bbbbabababbbabababbbabababababbabbababa");
174 } 175 }
OLDNEW
« src/zone-inl.h ('K') | « test/cctest/test-dataflow.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698