| 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 "modules/serviceworkers/ServiceWorkerContainer.h" | 6 #include "modules/serviceworkers/ServiceWorkerContainer.h" |
| 7 | 7 |
| 8 #include "bindings/core/v8/Dictionary.h" | 8 #include "bindings/core/v8/Dictionary.h" |
| 9 #include "bindings/core/v8/ScriptFunction.h" | 9 #include "bindings/core/v8/ScriptFunction.h" |
| 10 #include "bindings/core/v8/ScriptPromise.h" | 10 #include "bindings/core/v8/ScriptPromise.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 ExpectDOMException(const String& expectedName, const String& expectedMessage
) | 105 ExpectDOMException(const String& expectedName, const String& expectedMessage
) |
| 106 : m_expectedName(expectedName) | 106 : m_expectedName(expectedName) |
| 107 , m_expectedMessage(expectedMessage) | 107 , m_expectedMessage(expectedMessage) |
| 108 { | 108 { |
| 109 } | 109 } |
| 110 | 110 |
| 111 virtual ~ExpectDOMException() OVERRIDE { } | 111 virtual ~ExpectDOMException() OVERRIDE { } |
| 112 | 112 |
| 113 virtual void operator()(ScriptValue value) const OVERRIDE | 113 virtual void operator()(ScriptValue value) const OVERRIDE |
| 114 { | 114 { |
| 115 DOMException* exception = V8DOMException::toNativeWithTypeCheck(value.is
olate(), value.v8Value()); | 115 DOMException* exception = V8DOMException::toImplWithTypeCheck(value.isol
ate(), value.v8Value()); |
| 116 EXPECT_TRUE(exception) << "the value should be a DOMException"; | 116 EXPECT_TRUE(exception) << "the value should be a DOMException"; |
| 117 if (!exception) | 117 if (!exception) |
| 118 return; | 118 return; |
| 119 EXPECT_EQ(m_expectedName, exception->name()); | 119 EXPECT_EQ(m_expectedName, exception->name()); |
| 120 EXPECT_EQ(m_expectedMessage, exception->message()); | 120 EXPECT_EQ(m_expectedMessage, exception->message()); |
| 121 } | 121 } |
| 122 | 122 |
| 123 private: | 123 private: |
| 124 String m_expectedName; | 124 String m_expectedName; |
| 125 String m_expectedMessage; | 125 String m_expectedMessage; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 342 |
| 343 EXPECT_EQ(1ul, stubProvider.unregisterCallCount()); | 343 EXPECT_EQ(1ul, stubProvider.unregisterCallCount()); |
| 344 EXPECT_EQ(WebURL(KURL(KURL(), "http://localhost/x/y/")), stubProvider.un
registerScope()); | 344 EXPECT_EQ(WebURL(KURL(KURL(), "http://localhost/x/y/")), stubProvider.un
registerScope()); |
| 345 } | 345 } |
| 346 | 346 |
| 347 container->willBeDetachedFromFrame(); | 347 container->willBeDetachedFromFrame(); |
| 348 } | 348 } |
| 349 | 349 |
| 350 } // namespace | 350 } // namespace |
| 351 } // namespace blink | 351 } // namespace blink |
| OLD | NEW |