[Ozone-Gbm] Explicitly crash if trying software rendering on GBM
[chromium-blink-merge.git] / gin / modules / module_registry_unittests.js
blobca7014899b314a293ab3c78659f8e19367abeb6b
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 define("module0", function() {
6 return {
7 "foo": "bar",
9 });
11 define("module2", [
12 "gtest",
13 "module0",
14 "module1"
15 ], function(gtest, module0, module1) {
16 gtest.expectEqual(module0.foo, "bar",
17 "module0.foo is " + module0.foo);
18 gtest.expectFalse(module0.bar,
19 "module0.bar is " + module0.bar);
20 gtest.expectEqual(module1.baz, "qux",
21 "module1.baz is " + module1.baz);
22 gtest.expectFalse(module1.qux,
23 "module1.qux is " + module1.qux);
25 this.result = "PASS";
26 });
28 define("module1", {
29 "baz": "qux",
30 });