Skip to content

Commit

Permalink
Add dart_core.js (fixes #89)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmundch committed Mar 11, 2015
1 parent 6d9564b commit a6befe3
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dev_compiler/lib/src/dependency_graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class HtmlSourceNode extends SourceNode {

HtmlSourceNode(uri, source, graph) : super(uri, source) {
var prefix = 'package:dev_compiler/runtime';
var files = ['harmony_feature_check.js', 'dart_runtime.js'];
var files = ['harmony_feature_check.js', 'dart_runtime.js', 'dart_core.js'];
if (graph._options.serverMode) {
files.addAll(const ['messages_widget.js', 'messages.css']);
}
Expand Down
1 change: 1 addition & 0 deletions pkg/dev_compiler/test/codegen/expect/html_input.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<html><head></head><body>
<script src="dev_compiler/runtime/harmony_feature_check.js"></script>
<script src="dev_compiler/runtime/dart_runtime.js"></script>
<script src="dev_compiler/runtime/dart_core.js"></script>
<script>
/* placehorder for unimplemented code libraries */
var math = Math;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<html><head></head><body>
<script src="cached/c947f9f732203b97dd2882e63da78dbe/dev_compiler/runtime/harmony_feature_check.js"></script>
<script src="cached/e0c88ce05fb3615397b4fd408c68cf8a/dev_compiler/runtime/dart_runtime.js"></script>
<script src="cached/cd344ed9303198405463664eacd77748/dev_compiler/runtime/dart_core.js"></script>
<script src="cached/fa4d5796ad409e1bbdbd3c64354488c4/dev_compiler/runtime/messages_widget.js"></script>
<link rel="stylesheet" href="cached/307a7ef1e0cd0544d55c6f768f5e3886/dev_compiler/runtime/messages.css">
<script>
Expand Down
22 changes: 22 additions & 0 deletions pkg/dev_compiler/test/dependency_graph_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ main() {
index3.html
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
refreshStructureAndMarks(node, graph);
expectGraph(node, '''
Expand All @@ -567,6 +568,7 @@ main() {
| |-- a6.dart (part) [needs-rebuild]
|-- harmony_feature_check.js [needs-rebuild]
|-- dart_runtime.js [needs-rebuild]
|-- dart_core.js [needs-rebuild]
''');
});

Expand All @@ -583,6 +585,7 @@ main() {
| |-- a6.dart (part) [needs-rebuild]
|-- harmony_feature_check.js [needs-rebuild]
|-- dart_runtime.js [needs-rebuild]
|-- dart_core.js [needs-rebuild]
''');
clearMarks(node);
expectGraph(node, '''
Expand All @@ -595,6 +598,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

refreshStructureAndMarks(node, graph);
Expand All @@ -608,6 +612,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});

Expand All @@ -629,6 +634,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});

Expand All @@ -653,6 +659,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});
});
Expand All @@ -671,6 +678,7 @@ main() {
index3.html
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
|-- messages_widget.js
|-- messages.css
''');
Expand All @@ -685,6 +693,7 @@ main() {
| |-- a6.dart (part) [needs-rebuild]
|-- harmony_feature_check.js [needs-rebuild]
|-- dart_runtime.js [needs-rebuild]
|-- dart_core.js [needs-rebuild]
|-- messages_widget.js [needs-rebuild]
|-- messages.css [needs-rebuild]
''');
Expand Down Expand Up @@ -721,6 +730,7 @@ main() {
'a2.dart',
'harmony_feature_check.js',
'dart_runtime.js',
'dart_core.js',
'index3.html',
]);

Expand All @@ -735,6 +745,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});

Expand Down Expand Up @@ -887,6 +898,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

// Modify the file first:
Expand All @@ -909,6 +921,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

a2.source.contents.modificationTime++;
Expand Down Expand Up @@ -941,6 +954,7 @@ main() {
| |-- a5.dart...
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});

Expand All @@ -960,6 +974,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

a2.source.contents.modificationTime++;
Expand All @@ -983,6 +998,7 @@ main() {
| |-- a5.dart
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

a6.source.contents.modificationTime++;
Expand All @@ -1001,6 +1017,7 @@ main() {
| |-- a5.dart...
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});

Expand All @@ -1020,6 +1037,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

a2.source.contents.modificationTime++;
Expand All @@ -1044,6 +1062,7 @@ main() {
| |-- a5.dart
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});

Expand All @@ -1063,6 +1082,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

a2.source.contents.modificationTime++;
Expand All @@ -1086,6 +1106,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');

a5.source.contents.modificationTime++;
Expand All @@ -1103,6 +1124,7 @@ main() {
| |-- a6.dart (part)
|-- harmony_feature_check.js
|-- dart_runtime.js
|-- dart_core.js
''');
});
});
Expand Down
1 change: 1 addition & 0 deletions pkg/dev_compiler/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function fail {
# duplicated in the expected folder.
DIFF_ARGS="-u -r -N --exclude=\*.map \
--exclude=dart_runtime.js \
--exclude=dart_core.js \
--exclude=harmony_feature_check.js \
--exclude=messages_widget.js \
--exclude=messages.css \
Expand Down

0 comments on commit a6befe3

Please sign in to comment.