Skip to content

Instantly share code, notes, and snippets.

@adam-singer
Created April 2, 2012 04:51
Show Gist options
  • Save adam-singer/2280838 to your computer and use it in GitHub Desktop.
Save adam-singer/2280838 to your computer and use it in GitHub Desktop.
Dartium does not import properly dart:uri
#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();
}
<!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