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

Side by Side Diff: test/mjsunit/unicode-test.js

Issue 7826007: Added check for trailing whitespaces and corrected existing violations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Yet another iteration. Created 9 years, 3 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
« no previous file with comments | « test/mjsunit/try.js ('k') | test/mjsunit/value-wrapper.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 "[править] См. также\n" + 800 "[править] См. также\n" +
801 "\n" + 801 "\n" +
802 " * Китай (цивилизация)\n" + 802 " * Китай (цивилизация)\n" +
803 " * События на площади Тяньаньмэнь 1989 года\n" + 803 " * События на площади Тяньаньмэнь 1989 года\n" +
804 "\n" + 804 "\n" +
805 "[править] Литература\n" + 805 "[править] Литература\n" +
806 "\n" + 806 "\n" +
807 " * Васильев Л.С. Древний Китай: в 3 т. Т. 3. Период Чжаньго (V–III вв. до н. э.). М.: Восточная литература, 2006. ISBN 502018103X\n" + 807 " * Васильев Л.С. Древний Китай: в 3 т. Т. 3. Период Чжаньго (V–III вв. до н. э.). М.: Восточная литература, 2006. ISBN 502018103X\n" +
808 " * Непомнин О.Е. История Китая: Эпоха Цин. XVII – начало XX века. М.: Восточ ная литература, 2005. ISBN 5020184004\n"; 808 " * Непомнин О.Е. История Китая: Эпоха Цин. XVII – начало XX века. М.: Восточ ная литература, 2005. ISBN 5020184004\n";
809 809
810 var devanagari = 810 var devanagari =
811 "भारत\n" + 811 "भारत\n" +
812 "विकिपीडिया, एक मुक्त ज्ञानकोष से\n" + 812 "विकिपीडिया, एक मुक्त ज्ञानकोष से\n" +
813 "Jump to: navigation, search\n" + 813 "Jump to: navigation, search\n" +
814 " यह लेख एक निर्वाचित लेख उम्मीदवार है। अधिक जानकारी के लिए और इस लेख को न िर्वाचित लेख बनने के लिए क्या आवश्यकताएँ हैं यह जानने के लिए कृपया यहाँ देखें।\n " + 814 " यह लेख एक निर्वाचित लेख उम्मीदवार है। अधिक जानकारी के लिए और इस लेख को न िर्वाचित लेख बनने के लिए क्या आवश्यकताएँ हैं यह जानने के लिए कृपया यहाँ देखें।\n " +
815 "भारत गणराज्य\n" + 815 "भारत गणराज्य\n" +
816 "Flag of भारत Coat of arms of भारत\n" + 816 "Flag of भारत Coat of arms of भारत\n" +
817 "ध्वज कुलचिह्न\n" + 817 "ध्वज कुलचिह्न\n" +
818 "राष्ट्रवाक्य: \"सत्यमेव जयते\" (संस्कृत)\n" + 818 "राष्ट्रवाक्य: \"सत्यमेव जयते\" (संस्कृत)\n" +
819 "\n" + 819 "\n" +
820 "सत्य ही विजयी होता है\n" + 820 "सत्य ही विजयी होता है\n" +
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 "\n" + 1410 "\n" +
1411 "Words describing the navy, types of ships, and other objects or activities on t he water are often from Dutch origin. Yacht (Jacht) and cruiser (kruiser) are ex amples.\n" + 1411 "Words describing the navy, types of ships, and other objects or activities on t he water are often from Dutch origin. Yacht (Jacht) and cruiser (kruiser) are ex amples.\n" +
1412 "\n" + 1412 "\n" +
1413 "French origins\n" + 1413 "French origins\n" +
1414 "\n" + 1414 "\n" +
1415 " Main article: List of French phrases used by English speakers\n" + 1415 " Main article: List of French phrases used by English speakers\n" +
1416 "\n" + 1416 "\n" +
1417 "There are many words of French origin in English, such as competition, art, tab le, publicity, police, role, routine, machine, force, and many others that have been and are being anglicised; they are now pronounced according to English rule s of phonology, rather than French. A large portion of English vocabulary is of French or Oïl language origin, most derived from, or transmitted via, the Anglo- Norman spoken by the upper classes in England for several hundred years after th e Norman Conquest.\n"; 1417 "There are many words of French origin in English, such as competition, art, tab le, publicity, police, role, routine, machine, force, and many others that have been and are being anglicised; they are now pronounced according to English rule s of phonology, rather than French. A large portion of English vocabulary is of French or Oïl language origin, most derived from, or transmitted via, the Anglo- Norman spoken by the upper classes in England for several hundred years after th e Norman Conquest.\n";
1418 1418
1419 1419
1420 var greek = 1420 var greek =
1421 "Ελλάδα\n" + 1421 "Ελλάδα\n" +
1422 "Από τη Βικιπαίδεια, την ελεύθερη εγκυκλοπαίδεια\n" + 1422 "Από τη Βικιπαίδεια, την ελεύθερη εγκυκλοπαίδεια\n" +
1423 "Ελληνική Δημοκρατία\n" + 1423 "Ελληνική Δημοκρατία\n" +
1424 " \n" + 1424 " \n" +
1425 "Σημαία Εθνόσημο\n" + 1425 "Σημαία Εθνόσημο\n" +
1426 "Εθνικό σύνθημα: Ελευθερία ή Θάνατος\n" + 1426 "Εθνικό σύνθημα: Ελευθερία ή Θάνατος\n" +
1427 "Εθνικός ύμνος: Ὕμνος εἰς τὴν Ἐλευθερίαν\n" + 1427 "Εθνικός ύμνος: Ὕμνος εἰς τὴν Ἐλευθερίαν\n" +
1428 "\n" + 1428 "\n" +
1429 "Πρωτεύουσα Αθήνα \n" + 1429 "Πρωτεύουσα Αθήνα \n" +
1430 "38.01.36N 23.44.00E\n" + 1430 "38.01.36N 23.44.00E\n" +
(...skipping 7729 matching lines...) Expand 10 before | Expand all | Expand 10 after
9160 print ("re = " + out); 9160 print ("re = " + out);
9161 } 9161 }
9162 9162
9163 var thai_l_thingy = "\u0e44"; 9163 var thai_l_thingy = "\u0e44";
9164 var thai_l_regexp = new RegExp(thai_l_thingy); 9164 var thai_l_regexp = new RegExp(thai_l_thingy);
9165 var thai_l_regexp2 = new RegExp("[" + thai_l_thingy + "]"); 9165 var thai_l_regexp2 = new RegExp("[" + thai_l_thingy + "]");
9166 assertTrue(thai_l_regexp.test(thai_l_thingy)); 9166 assertTrue(thai_l_regexp.test(thai_l_thingy));
9167 assertTrue(thai_l_regexp2.test(thai_l_thingy)); 9167 assertTrue(thai_l_regexp2.test(thai_l_thingy));
9168 9168
9169 9169
OLDNEW
« no previous file with comments | « test/mjsunit/try.js ('k') | test/mjsunit/value-wrapper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698