OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 "config.h" | 5 #include "config.h" |
6 #include "bindings/core/v8/V8ScriptRunner.h" | 6 #include "bindings/core/v8/V8ScriptRunner.h" |
7 | 7 |
8 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8Binding.h" |
9 #include "core/fetch/ScriptResource.h" | 9 #include "core/fetch/ScriptResource.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 } | 131 } |
132 | 132 |
133 TEST_F(V8ScriptRunnerTest, codeOptions) | 133 TEST_F(V8ScriptRunnerTest, codeOptions) |
134 { | 134 { |
135 setResource(); | 135 setResource(); |
136 EXPECT_TRUE(compileScript(V8CacheOptionsCode)); | 136 EXPECT_TRUE(compileScript(V8CacheOptionsCode)); |
137 EXPECT_FALSE(m_resource->cachedMetadata(tagForParserCache())); | 137 EXPECT_FALSE(m_resource->cachedMetadata(tagForParserCache())); |
138 | 138 |
139 // FIXME: Code caching is presently still disabled. | 139 // FIXME: Code caching is presently still disabled. |
140 // Enable EXPECT when code caching lands. | 140 // Enable EXPECT when code caching lands. |
141 // EXPECT_TRUE(m_resource->cachedMetadata(tagForCodeCache(false))); | |
142 } | |
143 | |
144 TEST_F(V8ScriptRunnerTest, codeCompressedOptions) | |
145 { | |
146 setResource(); | |
147 EXPECT_TRUE(compileScript(V8CacheOptionsCodeCompressed)); | |
148 EXPECT_FALSE(m_resource->cachedMetadata(tagForParserCache())); | |
149 | |
150 // FIXME: Code caching is presently still disabled. | |
151 // Enable EXPECT when code caching lands. | |
vogelheim
2014/11/12 18:53:52
Would there be any way for the test to verify that
| |
141 // EXPECT_TRUE(m_resource->cachedMetadata(tagForCodeCache())); | 152 // EXPECT_TRUE(m_resource->cachedMetadata(tagForCodeCache())); |
142 } | 153 } |
143 | 154 |
144 } // namespace | 155 } // namespace |
145 | 156 |
146 } // namespace blink | 157 } // namespace blink |
OLD | NEW |