diff --git a/gulpfile.js b/gulpfile.js index f8dc60a472..8b7d82c07d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -238,9 +238,17 @@ var CONFIG = { test: { js: { cjs: [ + '/angular2/test/change_detection/**/*_spec.js', + '/angular2/test/core/annotations/**/*_spec.js', '/angular2/test/core/compiler/**/*_spec.js', + '/angular2/test/di/**/*_spec.js', '/angular2/test/directives/**/*_spec.js', - '/angular2/test/forms/**/*_spec.js' + '/angular2/test/facade/**/*_spec.js', + '/angular2/test/forms/**/*_spec.js', + '/angular2/test/mock/**/*_spec.js', + '/angular2/test/reflection/**/*_spec.js', + '/angular2/test/services/**/*_spec.js', + '/angular2/test/test_lib/**/*_spec.js' ] } } diff --git a/modules/angular2/src/dom/parse5_adapter.cjs b/modules/angular2/src/dom/parse5_adapter.cjs index 382ef484a2..4f86a7e96a 100644 --- a/modules/angular2/src/dom/parse5_adapter.cjs +++ b/modules/angular2/src/dom/parse5_adapter.cjs @@ -366,10 +366,17 @@ export class Parse5DomAdapter extends DomAdapter { defaultDoc() { if (defDoc === null) { defDoc = StringMapWrapper.create(); + defDoc.title = "Default title"; StringMapWrapper.set(defDoc, "head", treeAdapter.createElement("head", null, [])); } return defDoc; } + getTitle() { + return this.defaultDoc().title || ""; + } + setTitle(newTitle:string) { + this.defaultDoc().title = newTitle; + } isTemplateElement(el:any):boolean { return this.isElementNode(el) && this.tagName(el) === "template"; }