OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/test/base/module_system_test.h" | |
6 | |
7 #include "extensions/common/extension_urls.h" | 5 #include "extensions/common/extension_urls.h" |
| 6 #include "extensions/renderer/module_system_test.h" |
8 #include "grit/extensions_renderer_resources.h" | 7 #include "grit/extensions_renderer_resources.h" |
9 | 8 |
10 namespace extensions { | 9 namespace extensions { |
11 namespace { | 10 namespace { |
12 | 11 |
13 class EventUnittest : public ModuleSystemTest { | 12 class EventUnittest : public ModuleSystemTest { |
14 virtual void SetUp() OVERRIDE { | 13 virtual void SetUp() OVERRIDE { |
15 ModuleSystemTest::SetUp(); | 14 ModuleSystemTest::SetUp(); |
16 | 15 |
17 env()->RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS); | 16 env()->RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 " e.addListener(cb);" | 284 " e.addListener(cb);" |
286 "} catch (e) {" | 285 "} catch (e) {" |
287 " caught = true;" | 286 " caught = true;" |
288 "}" | 287 "}" |
289 "assert.AssertTrue(caught);"); | 288 "assert.AssertTrue(caught);"); |
290 env()->module_system()->Require("test"); | 289 env()->module_system()->Require("test"); |
291 } | 290 } |
292 | 291 |
293 } // namespace | 292 } // namespace |
294 } // namespace extensions | 293 } // namespace extensions |
OLD | NEW |