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" | 5 #include "chrome/test/base/module_system_test.h" |
6 | 6 |
7 #include "grit/renderer_resources.h" | 7 #include "grit/renderer_resources.h" |
8 | 8 |
| 9 namespace extensions { |
9 namespace { | 10 namespace { |
10 | 11 |
11 class EventUnittest : public ModuleSystemTest { | 12 class EventUnittest : public ModuleSystemTest { |
12 virtual void SetUp() OVERRIDE { | 13 virtual void SetUp() OVERRIDE { |
13 ModuleSystemTest::SetUp(); | 14 ModuleSystemTest::SetUp(); |
14 module_system_->RunString("chrome = {};", "setup-chrome"); | 15 module_system_->RunString("chrome = {};", "setup-chrome"); |
15 | 16 |
16 RegisterModule("event", IDR_EVENT_BINDINGS_JS); | 17 RegisterModule("event", IDR_EVENT_BINDINGS_JS); |
17 RegisterModule("schemaUtils", IDR_SCHEMA_UTILS_JS); | 18 RegisterModule("schemaUtils", IDR_SCHEMA_UTILS_JS); |
18 RegisterModule("utils", IDR_UTILS_JS); | 19 RegisterModule("utils", IDR_UTILS_JS); |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 "try {" | 267 "try {" |
267 " e.addListener(cb);" | 268 " e.addListener(cb);" |
268 "} catch (e) {" | 269 "} catch (e) {" |
269 " caught = true;" | 270 " caught = true;" |
270 "}" | 271 "}" |
271 "assert.AssertTrue(caught);"); | 272 "assert.AssertTrue(caught);"); |
272 module_system_->Require("test"); | 273 module_system_->Require("test"); |
273 } | 274 } |
274 | 275 |
275 } // namespace | 276 } // namespace |
| 277 } // namespace extensions |
OLD | NEW |