| OLD | NEW |
| 1 // Copyright 2015 PDFium Authors. All rights reserved. | 1 // Copyright 2015 PDFium 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 #include "testing/js_embedder_test.h" | 6 #include "testing/js_embedder_test.h" |
| 7 | 7 |
| 8 namespace { | 8 namespace { |
| 9 | 9 |
| 10 const double kExpected0 = 6.0; | 10 const double kExpected0 = 6.0; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 v8::Local<v8::Context> context2 = | 74 v8::Local<v8::Context> context2 = |
| 75 v8::Local<v8::Context>::New(isolate(), global_context2); | 75 v8::Local<v8::Context>::New(isolate(), global_context2); |
| 76 v8::Context::Scope context_scope2(context2); | 76 v8::Context::Scope context_scope2(context2); |
| 77 ExecuteInCurrentContext(CFX_WideString(kScript2)); | 77 ExecuteInCurrentContext(CFX_WideString(kScript2)); |
| 78 CheckAssignmentInCurrentContext(kExpected2); | 78 CheckAssignmentInCurrentContext(kExpected2); |
| 79 } | 79 } |
| 80 FXJS_ReleaseRuntime(isolate(), &global_context2, &static_objects2); | 80 FXJS_ReleaseRuntime(isolate(), &global_context2, &static_objects2); |
| 81 | 81 |
| 82 CheckAssignmentInCurrentContext(kExpected0); | 82 CheckAssignmentInCurrentContext(kExpected0); |
| 83 } | 83 } |
| OLD | NEW |