Created
April 2, 2012 04:51
-
-
Save adam-singer/2280838 to your computer and use it in GitHub Desktop.
Dartium does not import properly dart:uri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import('dart:html'); | |
#import('dart:uri'); | |
/* | |
Cannot load Dart script dart:uri FIXME:1 | |
Failed to load resource dart:uri | |
*/ | |
class DartiumUriBug { | |
DartiumUriBug() { | |
} | |
void run() { | |
Uri u = new Uri.fromString("http://www.google.com"); | |
write("Hello World!"); | |
} | |
void write(String message) { | |
// the HTML library defines a global "document" variable | |
document.query('#status').innerHTML = message; | |
} | |
} | |
void main() { | |
new DartiumUriBug().run(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>DartiumUriBug</title> | |
</head> | |
<body> | |
<h1>DartiumUriBug</h1> | |
<h2 id="status">dart is not running</h2> | |
<script type="application/dart" src="DartiumUriBug.dart"></script> | |
<script src="http://dart.googlecode.com/svn/branches/bleeding_edge/dart/client/dart.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment