Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: third_party/WebKit/LayoutTests/mojo/resources/validation_test_input_parser.js

Issue 2891193002: Mojo JS bindings: switch all mojo/ layout tests to use the new mode. (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+})();
« no previous file with comments | « third_party/WebKit/LayoutTests/mojo/interface_ptr.html ('k') | third_party/WebKit/LayoutTests/mojo/sample_service.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698