Skip to content

Commit

Permalink
Remove no longer needed enable_javascript_mode from Full constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
eee-c committed Jul 2, 2013
1 parent 247aa02 commit 7befa1a
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lib/full.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Full {
Editor ice;
Store store;

Full({enable_javascript_mode: true}) {
Full() {
el = new Element.html('<div id=ice>');
document.body.nodes.add(el);

Expand Down
2 changes: 1 addition & 1 deletion test/full/copy_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ copy_dialog_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
2 changes: 1 addition & 1 deletion test/full/download_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ download_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
2 changes: 1 addition & 1 deletion test/full/hide_button_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hide_button_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
2 changes: 1 addition & 1 deletion test/full/new_project_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ new_project_dialog_tests(){
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
4 changes: 2 additions & 2 deletions test/full/open_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open_dialog_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down Expand Up @@ -131,7 +131,7 @@ open_dialog_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store.clear();
Expand Down
2 changes: 1 addition & 1 deletion test/full/remove_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ remove_dialog_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
2 changes: 1 addition & 1 deletion test/full/rename_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rename_dialog_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
2 changes: 1 addition & 1 deletion test/full/save_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ save_dialog_tests(){
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store..clear()..['Saved Project'] = {'code': 'asdf'};
Expand Down
6 changes: 3 additions & 3 deletions test/full/share_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ share_dialog_tests() {
setUp((){
window.location.hash = 'B/88gvT6nUUXDKT1IEAA==';

editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

store = editor.store
Expand Down Expand Up @@ -52,7 +52,7 @@ share_dialog_tests() {
setUp((){
window.location.hash = 'B/88gvT6nUUXDKT1IEAA==';

editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}"
..store['Untitled'] = {'code': 'Hi, Fred!'};

Expand Down Expand Up @@ -81,7 +81,7 @@ share_dialog_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
2 changes: 1 addition & 1 deletion test/full/show_button_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ show_button_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
12 changes: 6 additions & 6 deletions test/full_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ full_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down Expand Up @@ -34,7 +34,7 @@ full_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down Expand Up @@ -76,7 +76,7 @@ full_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down Expand Up @@ -113,7 +113,7 @@ full_tests() {
setUp((){
window.location.hash = '#e';

editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand All @@ -139,7 +139,7 @@ full_tests() {

setUp((){
window.location.hash = '#g';
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down Expand Up @@ -174,7 +174,7 @@ full_tests() {
var editor;

setUp((){
editor = new Full(enable_javascript_mode: false)
editor = new Full()
..store.storage_key = "ice-test-${currentTestCase.id}";

editor.store
Expand Down
2 changes: 1 addition & 1 deletion test/html5_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ main() {
tearDown(()=> document.query('#ice').remove());

test("the editor is full-screen", (){
var it = new Full(enable_javascript_mode: false);
var it = new Full();

_test(_) {
var el = document.query('#ice');
Expand Down

0 comments on commit 7befa1a

Please sign in to comment.