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

Unified Diff: client/tools/htmlconverter_test.py

Issue 9567032: Bring htmlconverter back up to date: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | « client/tools/htmlconverter.py ('k') | client/tools/update.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tools/htmlconverter_test.py
diff --git a/client/tools/htmlconverter_test.py b/client/tools/htmlconverter_test.py
index 4ad4800a6b661596c8afc5d0bd90c35853d3e9f3..174230f3c64c54a2b1c57bfb556610647e679fb0 100644
--- a/client/tools/htmlconverter_test.py
+++ b/client/tools/htmlconverter_test.py
@@ -27,6 +27,7 @@ TEST1_HTML = """
<!-- embed source code -->
<script type="application/dart">
+ #import('dart:dom');
main() {
window.alert('hi');
}
@@ -133,7 +134,7 @@ TEST4_HTML = """
TEST4_DART = """
#import('dart:dom');
-#import('observable/observable.dart');
+#import('../samples/ui_lib/observable/observable.dart');
main() {
// use imported code
@@ -183,6 +184,7 @@ TEST5_HTML = """
<!-- embed source code -->
<script type="application/dart">
+ #import('dart:dom');
main() {
var element = document.getElementById("test5div");
if (element == null) {
@@ -204,9 +206,6 @@ this is visible on DOMContentLoaded
#EOF
"""
-# TODO(sigmund): integrate with testing infrastructure and mark negative tests.
-# removing the prefix on test6 should purposely fail.
-
TEST6_HTML = """
<html>
<head></head>
@@ -219,7 +218,7 @@ TEST6_HTML = """
<!-- embed source code -->
<script type="application/dart">
- #import('html/html.dart', prefix: 'html');
+ #import('dart:html', prefix: 'html');
main() {
html.window.alert('hi');
}
@@ -306,7 +305,7 @@ def browserRun(message, htmlfile, test, verbose):
printLine(message + ' [%d]' % (test + 1))
status, out, err = execute([
'tests/drt/DumpRenderTree',
- '--dart-flags=--enable_type_checks --enable_asserts', htmlfile],
+ htmlfile],
verbose)
if status != 0:
printLine("%sERROR%s test output [%d]" % (RED_COLOR, NO_COLOR, test + 1))
« no previous file with comments | « client/tools/htmlconverter.py ('k') | client/tools/update.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698