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

Unified Diff: test/codegen/expect/lib/html/domparser_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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: test/codegen/expect/lib/html/domparser_test.js
diff --git a/test/codegen/expect/lib/html/domparser_test.js b/test/codegen/expect/lib/html/domparser_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..98e480ac05abc9cf0f3e8ee7ce7d21c0dc88b23b
--- /dev/null
+++ b/test/codegen/expect/lib/html/domparser_test.js
@@ -0,0 +1,29 @@
+dart_library.library('lib/html/domparser_test', null, /* Imports */[
+ 'dart_sdk',
+ 'unittest'
+], function load__domparser_test(exports, dart_sdk, unittest) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const html = dart_sdk.html;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const html_config = unittest.html_config;
+ const src__matcher__core_matchers = unittest.src__matcher__core_matchers;
+ const unittest$ = unittest.unittest;
+ const src__matcher__expect = unittest.src__matcher__expect;
+ const domparser_test = Object.create(null);
+ let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ domparser_test.main = function() {
+ html_config.useHtmlConfiguration();
+ let isDomParser = src__matcher__core_matchers.predicate(dart.fn(x => html.DomParser.is(x), dynamicTobool()), 'is a DomParser');
+ unittest$.test('constructorTest', dart.fn(() => {
+ let ctx = html.DomParser.new();
+ src__matcher__expect.expect(ctx, src__matcher__core_matchers.isNotNull);
+ src__matcher__expect.expect(ctx, isDomParser);
+ }, VoidTodynamic()));
+ };
+ dart.fn(domparser_test.main, VoidTodynamic());
+ // Exports:
+ exports.domparser_test = domparser_test;
+});
« no previous file with comments | « test/codegen/expect/lib/html/dom_constructors_test.js ('k') | test/codegen/expect/lib/html/element_add_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698