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

Unified Diff: tests/html/url_test.dart

Issue 10963057: Emit static IDL members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/url_test.dart
diff --git a/tests/html/url_test.dart b/tests/html/url_test.dart
index 6cfc8158a3265b9a96df47b8b2d4b103067689ad..f6527bbb71e392ca2fa999f4cf9bd7fdf15d2c52 100644
--- a/tests/html/url_test.dart
+++ b/tests/html/url_test.dart
@@ -36,7 +36,7 @@ main() {
group('blob', () {
test('createObjectUrl', () {
var blob = createImageBlob();
- var url = window.createObjectUrl(blob);
+ var url = DOMURL.createObjectURL(blob);
expect(url.length, greaterThan(0));
expect(url.startsWith('blob:'));
@@ -52,11 +52,11 @@ main() {
img.src = url;
});
- test('revokeObjectUrl', () {
+ test('revokeObjectURL', () {
var blob = createImageBlob();
- var url = window.createObjectUrl(blob);
+ var url = DOMURL.createObjectURL(blob);
expect(url.startsWith('blob:'));
- window.revokeObjectUrl(url);
+ DOMURL.revokeObjectURL(url);
var img = new ImageElement();
// Image should fail to load since the URL was revoked.
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698