refactor: Remove isDart from public API

BREAKING CHANGE:

- `IS_DARTIUM` no longer exported
This commit is contained in:
Misko Hevery
2015-08-11 14:00:54 -07:00
parent 5c328adb4b
commit b7837389d7
35 changed files with 61 additions and 74 deletions
@@ -7,7 +7,6 @@ import {
expect,
iit,
inject,
IS_DARTIUM,
it,
} from 'angular2/test_lib';
@@ -7,9 +7,9 @@ import {
iit,
inject,
it,
xit,
IS_DARTIUM
xit
} from 'angular2/test_lib';
import {IS_DART} from '../../../platform';
import {DomElementSchemaRegistry} from 'angular2/src/render/dom/schema/dom_element_schema_registry';
import {DOM} from 'angular2/src/dom/dom_adapter';
@@ -17,7 +17,7 @@ import {DOM} from 'angular2/src/dom/dom_adapter';
export function main() {
// DOMElementSchema can only be used on the JS side where we can safely
// use reflection for DOM elements
if (IS_DARTIUM) return;
if (IS_DART) return;
var registry;
@@ -7,8 +7,7 @@ import {
xdescribe,
expect,
beforeEach,
el,
IS_DARTIUM
el
} from 'angular2/test_lib';
import {DomElementSchemaRegistry} from 'angular2/src/render/dom/schema/dom_element_schema_registry';
@@ -17,6 +16,7 @@ import {ProtoViewBuilder} from 'angular2/src/render/dom/view/proto_view_builder'
import {ASTWithSource, AST} from 'angular2/src/change_detection/change_detection';
import {PropertyBindingType, ViewType, ViewEncapsulation} from 'angular2/src/render/api';
import {DOM} from 'angular2/src/dom/dom_adapter';
import {IS_DART} from '../../../platform';
export function main() {
function emptyExpr() { return new ASTWithSource(new AST(), 'empty', 'empty'); }
@@ -30,7 +30,7 @@ export function main() {
new ProtoViewBuilder(DOM.createTemplate(''), ViewType.EMBEDDED, ViewEncapsulation.NONE);
});
if (!IS_DARTIUM) {
if (!IS_DART) {
describe('verification of properties', () => {
it('should throw for unknown properties', () => {
@@ -7,7 +7,6 @@ import {
expect,
iit,
inject,
IS_DARTIUM,
it,
} from 'angular2/test_lib';
import {MockXHR} from 'angular2/src/render/xhr_mock';