Index: third_party/WebKit/LayoutTests/mojo/resources/validation_test_input_parser.js |
diff --git a/third_party/WebKit/LayoutTests/mojo/resources/validation_test_input_parser.js b/third_party/WebKit/LayoutTests/mojo/resources/validation_test_input_parser.js |
index c1403fd4d079dbdb082da5d6ae86646b13a460f5..fb281edc2011dbd191c146bf6619615e1d18445e 100644 |
--- a/third_party/WebKit/LayoutTests/mojo/resources/validation_test_input_parser.js |
+++ b/third_party/WebKit/LayoutTests/mojo/resources/validation_test_input_parser.js |
@@ -6,10 +6,7 @@ |
// or ".data" files. The input format is described here: |
// mojo/public/cpp/bindings/tests/validation_test_input_parser.h |
-define("mojo/resources/validation_test_input_parser", [ |
- "mojo/public/js/buffer" |
- ], function(buffer) { |
- |
+(function() { |
// Files and Lines represent the raw text from an input string |
// or ".data" file. |
@@ -138,7 +135,7 @@ define("mojo/resources/validation_test_input_parser", [ |
function TestMessage(byteLength) { |
this.index = 0; |
- this.buffer = new buffer.Buffer(byteLength); |
+ this.buffer = new mojo.internal.Buffer(byteLength); |
this.distances = {}; |
this.handleCount = 0; |
} |
@@ -293,8 +290,7 @@ define("mojo/resources/validation_test_input_parser", [ |
return msg; |
} |
- var exports = {}; |
- exports.parseTestMessage = parseTestMessage; |
- exports.InputError = InputError; |
- return exports; |
-}); |
+ mojo.test = mojo.test || {}; |
+ mojo.test.parseTestMessage = parseTestMessage; |
+ mojo.test.InputError = InputError; |
+})(); |