OLD | NEW |
1 // Copyright 2007-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2010 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 Deserialize(); | 295 Deserialize(); |
296 | 296 |
297 v8::Persistent<v8::Context> env = v8::Context::New(); | 297 v8::Persistent<v8::Context> env = v8::Context::New(); |
298 env->Enter(); | 298 env->Enter(); |
299 | 299 |
300 SanityCheck(); | 300 SanityCheck(); |
301 } | 301 } |
302 | 302 |
303 | 303 |
304 DEPENDENT_TEST(DeserializeFromSecondSerialization, SerializeTwice) { | 304 DEPENDENT_TEST(DeserializeFromSecondSerialization, SerializeTwice) { |
| 305 // BUG(632): Disable this test until the partial_snapshots branch is |
| 306 // merged back. |
| 307 return; |
| 308 |
305 v8::HandleScope scope; | 309 v8::HandleScope scope; |
306 | 310 |
307 Deserialize(); | 311 Deserialize(); |
308 | 312 |
309 v8::Persistent<v8::Context> env = v8::Context::New(); | 313 v8::Persistent<v8::Context> env = v8::Context::New(); |
310 env->Enter(); | 314 env->Enter(); |
311 | 315 |
312 SanityCheck(); | 316 SanityCheck(); |
313 } | 317 } |
314 | 318 |
315 | 319 |
316 DEPENDENT_TEST(DeserializeAndRunScript2, Serialize) { | 320 DEPENDENT_TEST(DeserializeAndRunScript2, Serialize) { |
317 v8::HandleScope scope; | 321 v8::HandleScope scope; |
318 | 322 |
319 Deserialize(); | 323 Deserialize(); |
320 | 324 |
321 v8::Persistent<v8::Context> env = v8::Context::New(); | 325 v8::Persistent<v8::Context> env = v8::Context::New(); |
322 env->Enter(); | 326 env->Enter(); |
323 | 327 |
324 const char* c_source = "\"1234\".length"; | 328 const char* c_source = "\"1234\".length"; |
325 v8::Local<v8::String> source = v8::String::New(c_source); | 329 v8::Local<v8::String> source = v8::String::New(c_source); |
326 v8::Local<v8::Script> script = v8::Script::Compile(source); | 330 v8::Local<v8::Script> script = v8::Script::Compile(source); |
327 CHECK_EQ(4, script->Run()->Int32Value()); | 331 CHECK_EQ(4, script->Run()->Int32Value()); |
328 } | 332 } |
329 | 333 |
330 | 334 |
331 DEPENDENT_TEST(DeserializeFromSecondSerializationAndRunScript2, | 335 DEPENDENT_TEST(DeserializeFromSecondSerializationAndRunScript2, |
332 SerializeTwice) { | 336 SerializeTwice) { |
| 337 // BUG(632): Disable this test until the partial_snapshots branch is |
| 338 // merged back. |
| 339 return; |
| 340 |
333 v8::HandleScope scope; | 341 v8::HandleScope scope; |
334 | 342 |
335 Deserialize(); | 343 Deserialize(); |
336 | 344 |
337 v8::Persistent<v8::Context> env = v8::Context::New(); | 345 v8::Persistent<v8::Context> env = v8::Context::New(); |
338 env->Enter(); | 346 env->Enter(); |
339 | 347 |
340 const char* c_source = "\"1234\".length"; | 348 const char* c_source = "\"1234\".length"; |
341 v8::Local<v8::String> source = v8::String::New(c_source); | 349 v8::Local<v8::String> source = v8::String::New(c_source); |
342 v8::Local<v8::Script> script = v8::Script::Compile(source); | 350 v8::Local<v8::Script> script = v8::Script::Compile(source); |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 TEST(TestThatAlwaysFails) { | 569 TEST(TestThatAlwaysFails) { |
562 bool ArtificialFailure = false; | 570 bool ArtificialFailure = false; |
563 CHECK(ArtificialFailure); | 571 CHECK(ArtificialFailure); |
564 } | 572 } |
565 | 573 |
566 | 574 |
567 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { | 575 DEPENDENT_TEST(DependentTestThatAlwaysFails, TestThatAlwaysSucceeds) { |
568 bool ArtificialFailure2 = false; | 576 bool ArtificialFailure2 = false; |
569 CHECK(ArtificialFailure2); | 577 CHECK(ArtificialFailure2); |
570 } | 578 } |
OLD | NEW |