| 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 "extensions/common/extension_urls.h" | 7 #include "extensions/common/extension_urls.h" |
| 8 #include "grit/extensions_renderer_resources.h" | 8 #include "grit/renderer_resources.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 class EventUnittest : public ModuleSystemTest { | 13 class EventUnittest : public ModuleSystemTest { |
| 14 virtual void SetUp() OVERRIDE { | 14 virtual void SetUp() OVERRIDE { |
| 15 ModuleSystemTest::SetUp(); | 15 ModuleSystemTest::SetUp(); |
| 16 | 16 |
| 17 RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS); | 17 RegisterModule(kEventBindings, IDR_EVENT_BINDINGS_JS); |
| 18 RegisterModule("json_schema", IDR_JSON_SCHEMA_JS); | 18 RegisterModule("json_schema", IDR_JSON_SCHEMA_JS); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 " e.addListener(cb);" | 280 " e.addListener(cb);" |
| 281 "} catch (e) {" | 281 "} catch (e) {" |
| 282 " caught = true;" | 282 " caught = true;" |
| 283 "}" | 283 "}" |
| 284 "assert.AssertTrue(caught);"); | 284 "assert.AssertTrue(caught);"); |
| 285 context_->module_system()->Require("test"); | 285 context_->module_system()->Require("test"); |
| 286 } | 286 } |
| 287 | 287 |
| 288 } // namespace | 288 } // namespace |
| 289 } // namespace extensions | 289 } // namespace extensions |
| OLD | NEW |