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

Side by Side Diff: tests/html/wrapping_collections_test.dart

Issue 1409743003: Hide internal methods like wrap_jso from the dart:html public interface (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Review fixes Created 5 years, 2 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
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tools/dom/src/dartium_CustomElementSupport.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library wrapping_collection_test; 1 library wrapping_collection_test;
2 2
3 import 'dart:html'; 3 import 'dart:html';
4 import 'dart:html_common';
4 import 'dart:js' as js; 5 import 'dart:js' as js;
5 import 'package:unittest/unittest.dart'; 6 import 'package:unittest/unittest.dart';
6 import 'package:unittest/html_config.dart'; 7 import 'package:unittest/html_config.dart';
7 8
8 /// Test that if we access objects through JS-interop we get the 9 /// Test that if we access objects through JS-interop we get the
9 /// appropriate objects, even if dart:html maps them. 10 /// appropriate objects, even if dart:html maps them.
10 main() { 11 main() {
11 test("Access through JS-interop", () { 12 test("Access through JS-interop", () {
12 var performance = js.context['performance']; 13 var performance = js.context['performance'];
13 var entries = performance.callMethod('getEntries', const []); 14 var entries = performance.callMethod('getEntries', const []);
14 entries.forEach((x) { 15 entries.forEach((x) {
15 expect(x is js.JsObject, isTrue); 16 expect(x is js.JsObject, isTrue);
16 }); 17 });
17 }); 18 });
18 19
19 test("Access through dart:html", () { 20 test("Access through dart:html", () {
20 var dartPerformance = wrap_jso(js.context['performance']); 21 var dartPerformance = wrap_jso(js.context['performance']);
21 var dartEntries = dartPerformance.getEntries(); 22 var dartEntries = dartPerformance.getEntries();
22 dartEntries.forEach((x) { 23 dartEntries.forEach((x) {
23 expect(x is PerformanceEntry, isTrue); 24 expect(x is PerformanceEntry, isTrue);
24 }); 25 });
25 }); 26 });
26 } 27 }
OLDNEW
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tools/dom/src/dartium_CustomElementSupport.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698