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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp

Issue 2693423002: Do not re-initialize PendingScript in HTMLParserScriptRunner (Closed)
Patch Set: Reflect comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
index 52ec7356c51d7fcd7968087a7be8ff11d8f5a3aa..ee31bc65df8293a15ba422eb81b15b31b59e0e4b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp
@@ -34,9 +34,9 @@ class ScriptStreamingTest : public ::testing::Test {
m_settings(Settings::create()),
m_resourceRequest("http://www.streaming-test.com/"),
m_resource(ScriptResource::create(m_resourceRequest, "UTF-8")),
- m_pendingScript(PendingScript::create(0, m_resource.get())) {
+ m_pendingScript(PendingScript::createForTesting(m_resource.get())) {
m_resource->setStatus(ResourceStatus::Pending);
- m_pendingScript = PendingScript::create(0, m_resource.get());
+ m_pendingScript = PendingScript::createForTesting(m_resource.get());
ScriptStreamer::setSmallScriptThresholdForTesting(0);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/PendingScript.h » ('j') | third_party/WebKit/Source/core/dom/PendingScript.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698