Searched refs:parse (Results 1 - 25 of 1077) sorted by relevance

1234567891011>>

/external/v8/test/mjsunit/regress/
H A Dregress-944.js31 assertEquals(1290722550521, Date.parse("2010-11-25T22:02:30.521Z"));
35 assertEquals(1290722550500, Date.parse("2010-11-25T22:02:30.5Z"));
36 assertEquals(1290722550520, Date.parse("2010-11-25T22:02:30.52Z"));
37 assertFalse(Date.parse("2010-11-25T22:02:30.5Z") === Date.parse("2010-11-25T22:02:30.005Z"));
40 assertEquals(Date.parse("2010-11-25T22:02:30.1005Z"), Date.parse("2010-11-25T22:02:30.100Z"));
43 assertEquals(Date.parse("2010-11-25T22:02:30.999Z"), Date.parse("2010-11-25T22:02:30.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999Z"));
46 assertTrue(isNaN(Date.parse("201
[all...]
H A Dregress-857.js30 assertEquals(1283326536000, Date.parse("2010-08-31T22:35:36-09:00"));
31 assertEquals(1283261736000, Date.parse("2010-08-31T22:35:36+09:00"));
32 assertEquals(1283326536000, Date.parse("2010-08-31T22:35:36.0-09:00"));
33 assertEquals(1283261736000, Date.parse("2010-08-31T22:35:36.0+09:00"));
36 assertEquals(1283326536000, Date.parse("2010-08-31T22:35:36-0900"));
37 assertEquals(1283261736000, Date.parse("2010-08-31T22:35:36+0900"));
H A Dregress-696.js30 // only strings in Date.parse we also misleadingly supported strings with non
33 assertTrue(isNaN(Date.parse('x')));
34 assertTrue(isNaN(Date.parse('1x')));
35 assertTrue(isNaN(Date.parse('xT10:00:00')));
36 assertTrue(isNaN(Date.parse('This is a relatively long string')));
H A Dregress-91787.js34 JSON.parse('"\x80unterminated');
H A Dregress-crbug-158185.js29 Object.keys(JSON.parse('{"0023456": 1}'))[0]);
31 Object.keys(JSON.parse('{"1234567890123": 1}'))[0]);
33 Object.keys(JSON.parse('{"123456789ABCD": 1}'))[0]);
35 Object.keys(JSON.parse('{"12A": 1}'))[0]);
37 assertEquals(1, JSON.parse('{"0":1}')[0]);
38 assertEquals(undefined, JSON.parse('{"00":1}')[0]);
H A Dregress-json-parse-index.js5 var o = JSON.parse('{"\\u0030":100}');
H A Dregress-2373.js28 var o = JSON.parse('{"a":2600753951}');
H A Dregress-361025.js9 JSON.parse('{"a":2600753951}');
H A Dregress-crbug-423687.js8 var data = JSON.parse(json);
H A Dregress-cnlt-elements.js30 var a = JSON.parse('{"b":1,"c":2,"d":3,"e":4}');
31 var b = JSON.parse('{"12040200":1, "a":2, "b":2}');
32 var c = JSON.parse('{"24050300":1}');
H A Dregress-convert-transition.js30 var a = JSON.parse(input);
34 var b = JSON.parse(input);
38 var c = JSON.parse(input);
H A Dregress-1015.js45 var ja = JSON.parse('[1,2,3,4]');
46 var jo = JSON.parse('{"bar": 10, "foo": 20}')
47 var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}')
57 var ja = JSON.parse('[1,2,3,4]');
58 var jo = JSON.parse('{"bar": 10, "foo": 20}')
59 var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}')
/external/chromium-trace/trace-viewer/third_party/Paste/tests/test_util/
H A Dtest_mimeparse.py8 parse = parse_mime_type
9 assert parse('*/*') == ('*', '*', {})
10 assert parse('text/html') == ('text', 'html', {})
11 assert parse('audio/*; q=0.2') == ('audio', '*', {'q': '0.2'})
12 assert parse('text/x-dvi;level=1') == ('text', 'x-dvi', {'level': '1'})
13 assert parse('image/gif; level=2; q=0.4') == (
15 assert parse('application/xhtml;level=3;q=0.5') == (
17 assert parse('application/xml') == ('application', 'xml', {})
18 assert parse('application/xml;q=1') == ('application', 'xml', {'q': '1'})
19 assert parse('applicatio
[all...]
/external/mesa3d/src/gallium/tools/trace/
H A Ddump.py30 from parse import *
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DHttpUrlTest.java27 HttpUrl expected = HttpUrl.parse("http://host/");
28 assertEquals(expected, HttpUrl.parse("http://host/\f\n\t \r")); // Leading.
29 assertEquals(expected, HttpUrl.parse("\r\n\f \thttp://host/")); // Trailing.
30 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both.
31 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both.
32 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" "));
33 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" . "));
38 assertEquals("/%0B", HttpUrl.parse("http://h/\u000b").path()); // line tabulation
39 assertEquals("/%1C", HttpUrl.parse("http://h/\u001c").path()); // information separator 4
40 assertEquals("/%1D", HttpUrl.parse("htt
[all...]
/external/v8/test/mjsunit/
H A Ddate.js39 var date0 = Date.parse("Dec 25 1995 1:30");
40 var date1 = Date.parse("Dec 25, 1995 1:30");
41 var date2 = Date.parse("Dec 25 1995, 1:30");
42 var date3 = Date.parse("Dec 25, 1995, 1:30");
209 assertEquals(0, Date.parse("1970-01-01T00:00:00.000+00:00"));
210 assertEquals(0, Date.parse("1970-01-01T00:00:00.000-00:00"));
211 assertEquals(0, Date.parse("1970-01-01T00:00:00.000Z"));
212 assertEquals(0, Date.parse("1970-01-01T00:00:00.000"));
213 assertEquals(0, Date.parse("1970-01-01T00:00:00"));
214 assertEquals(0, Date.parse("197
[all...]
H A Djson-parser-recursive.js33 assertThrows(function() { JSON.parse(str); }, RangeError);
/external/proguard/src/proguard/util/
H A DStringParser.java34 public StringMatcher parse(String regularExpression); method in interface:StringParser
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
H A DHttpDateTest.java47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime());
48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime());
51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime());
52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime());
55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime());
56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime());
66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime());
67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime());
69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime());
71 assertNull(HttpDate.parse("Th
[all...]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/
H A DElementParser.java57 public void parse(String xmlFile){ method in class:ElementParser
61 parser.parse(xmlFile,this);
70 public void parse(String install, String type, String id){ method in class:ElementParser
82 parse(xmlFile);
107 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform-feature");
108 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.win32-feature");
109 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.motif-feature");
110 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.gtk-feature");
111 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.solaris.motif-feature");
112 xmlParser.parse("
[all...]
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/
H A DMediaTypeTest.java103 assertEquals("text", MediaType.parse("text/plain").type());
105 MediaType.parse("application/atom+xml; charset=utf-8").type());
109 assertEquals("plain", MediaType.parse("text/plain").subtype());
111 MediaType.parse("application/atom+xml; charset=utf-8").subtype());
118 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters());
120 MediaType.parse("application/atom+xml; charset=utf-8").parameters());
122 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters());
126 assertSame(MediaType.parse("image/gif"),
127 MediaType.parse("image/gif").withoutParameters());
128 assertEquals(MediaType.parse("imag
[all...]
/external/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_iterate.c36 struct tgsi_parse_context parse; local
38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK)
41 ctx->processor = parse.FullHeader.Processor;
47 while (!tgsi_parse_end_of_tokens( &parse )) {
48 tgsi_parse_token( &parse );
50 switch (parse.FullToken.Token.Type) {
53 if (!ctx->iterate_instruction( ctx, &parse.FullToken.FullInstruction ))
59 if (!ctx->iterate_declaration( ctx, &parse.FullToken.FullDeclaration ))
65 if (!ctx->iterate_immediate( ctx, &parse.FullToken.FullImmediate ))
71 if (!ctx->iterate_property( ctx, &parse
[all...]
/external/antlr/antlr-3.4/runtime/Python/tests/
H A Dt042ast.py25 def parse(self, text, method, rArgs=[], **kwargs): member in class:t042ast
40 r = self.parse("1 + 2", 'r1')
48 r = self.parse("assert 2+3;", 'r2')
56 r = self.parse("assert 2+3 : 5;", 'r2')
64 r = self.parse("if 1 fooze", 'r3')
72 r = self.parse("if 1 fooze else fooze", 'r3')
80 r = self.parse("while 2 fooze", 'r4')
88 r = self.parse("return;", 'r5')
96 r = self.parse("return 2+3;", 'r5')
104 r = self.parse("
[all...]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
H A DLevelTest.java109 * Test method parse, with the pre-defined string consts.
112 assertSame(Level.SEVERE, Level.parse("SEVERE"));
113 assertSame(Level.WARNING, Level.parse("WARNING"));
114 assertSame(Level.INFO, Level.parse("INFO"));
115 assertSame(Level.CONFIG, Level.parse("CONFIG"));
116 assertSame(Level.FINE, Level.parse("FINE"));
117 assertSame(Level.FINER, Level.parse("FINER"));
118 assertSame(Level.FINEST, Level.parse("FINEST"));
119 assertSame(Level.OFF, Level.parse("OFF"));
120 assertSame(Level.ALL, Level.parse("AL
[all...]
/external/guava/guava-tests/test/com/google/common/net/
H A DMediaTypeTest.java65 assertSame(constant, MediaType.parse(constant.toString()));
163 assertEquals("text", MediaType.parse("text/plain").type());
165 MediaType.parse("application/atom+xml; charset=utf-8").type());
169 assertEquals("plain", MediaType.parse("text/plain").subtype());
171 MediaType.parse("application/atom+xml; charset=utf-8").subtype());
178 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters());
180 MediaType.parse("application/atom+xml; charset=utf-8").parameters());
182 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters());
186 assertSame(MediaType.parse("image/gif"),
187 MediaType.parse("imag
[all...]

Completed in 154 milliseconds

1234567891011>>