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

Side by Side Diff: test/codegen/expect/lib/html/dart_object_local_storage_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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('lib/html/dart_object_local_storage_test', null, /* Imports */[
2 'dart_sdk',
3 'unittest'
4 ], function load__dart_object_local_storage_test(exports, dart_sdk, unittest) {
5 'use strict';
6 const core = dart_sdk.core;
7 const html = dart_sdk.html;
8 const dart = dart_sdk.dart;
9 const dartx = dart_sdk.dartx;
10 const html_config = unittest.html_config;
11 const unittest$ = unittest.unittest;
12 const src__matcher__expect = unittest.src__matcher__expect;
13 const src__matcher__core_matchers = unittest.src__matcher__core_matchers;
14 const dart_object_local_storage_test = Object.create(null);
15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
16 dart_object_local_storage_test.main = function() {
17 html_config.useHtmlConfiguration();
18 let body = html.document[dartx.body];
19 let localStorage = html.window[dartx.localStorage];
20 let sessionStorage = html.window[dartx.sessionStorage];
21 let element = html.Element.tag('canvas');
22 element[dartx.id] = 'test';
23 body[dartx.append](element);
24 unittest$.test('body', dart.fn(() => {
25 src__matcher__expect.expect(body, src__matcher__core_matchers.equals(html. document[dartx.body]));
26 }, VoidTodynamic()));
27 unittest$.test('localStorage', dart.fn(() => {
28 src__matcher__expect.expect(localStorage, src__matcher__core_matchers.equa ls(html.window[dartx.localStorage]));
29 }, VoidTodynamic()));
30 unittest$.test('sessionStorage', dart.fn(() => {
31 src__matcher__expect.expect(sessionStorage, src__matcher__core_matchers.eq uals(html.window[dartx.sessionStorage]));
32 }, VoidTodynamic()));
33 unittest$.test('unknown', dart.fn(() => {
34 let test = html.document[dartx.query]('#test');
35 src__matcher__expect.expect(element, src__matcher__core_matchers.equals(te st));
36 }, VoidTodynamic()));
37 };
38 dart.fn(dart_object_local_storage_test.main, VoidTodynamic());
39 // Exports:
40 exports.dart_object_local_storage_test = dart_object_local_storage_test;
41 });
OLDNEW
« no previous file with comments | « test/codegen/expect/lib/html/custom_tags_test.js ('k') | test/codegen/expect/lib/html/datalistelement_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698