describe('UI', function() {
    it('Disable iOS-specific auto-* features', function() {
        setFixtures('<input class="fakeInput"></span> \
                     <input class="fakeInput"></span> \
                     <input class="fakePassword"></span> \
                     <input class="fakePassword"></span>');

        var fakeInputs = $('.fakeInput');
        var fakePasswords = $('.fakePassword');

        disableIOSAutoStuff(fakeInputs, fakePasswords);

        expect(fakeInputs).toHaveAttr('autocapitalize', 'off');
        expect(fakeInputs).toHaveAttr('autocorrect', 'off');
        expect(fakePasswords).toHaveAttr('autocomplete', 'off');
    });

    it('Checking "New Nickname" hides the checkbox, shows 2nd password field, and focuses it', function() {
        setFixtures('<input id="checkbox"></span> \
                     <input id="otherPassword" style="display: none"></span>');
        var checkbox = $('#checkbox')
        var passwordField = $('#otherPassword');
        var data = {checkbox: checkbox, passwordField: passwordField};
        var clickEvent = jQuery.Event('click', {data: data});

        displayValidateMasterPassword(clickEvent);

        expect(checkbox).not.toBeVisible();
        expect(passwordField).toBeVisible();
        expect(passwordField).toBeFocused();
    });

    // XXX createAccountPassword (requires mock)
    // XXX setAccountPassword (requires mock)
    // XXX setNicknamesLink (requires mock)
    // XXX changedNicknamesLink (requires mock)

    it('"Start Over" reloads the page', function() {
        var location = 'somewhere'
        var fakeWindow = {location: location};
        var clickEvent = jQuery.Event('click', {data: fakeWindow});

        startOver(clickEvent);

        expect(location).toBe(location);
    });
});

@@ -668,21 +668,18 @@
     
-it('Checking 
+describe('
 %22New
@@ -692,38 +692,57 @@
 ame%22
- hides the checkbox, shows 2nd
+', function() %7B%0A        var checkbox;%0A        var
  pas
@@ -750,33 +750,59 @@
 word
- f
+F
 ield
-, and focuses it', 
+;%0A        var clickEvent;%0A%0A        beforeEach(
 func
@@ -802,32 +802,36 @@
 ch(function() %7B%0A
+    
         setFixtu
@@ -858,32 +858,36 @@
 kbox%22%3E%3C/span%3E %5C%0A
+    
                 
@@ -950,35 +950,35 @@
 pan%3E');%0A        
+ 
-var
+  
  checkbox = $('#
@@ -988,35 +988,35 @@
 ckbox')%0A        
-var
+   
  passwordField =
@@ -1041,24 +1041,28 @@
 ');%0A        
+    
 var data = %7B
@@ -1112,35 +1112,35 @@
 Field%7D;%0A        
-var
+   
  clickEvent = jQ
@@ -1170,25 +1170,87 @@
 ta: data%7D);%0A
-%0A
+        %7D);%0A%0A        it('hides the checkbox', function() %7B%0A    
         disp
@@ -1293,24 +1293,28 @@
 );%0A%0A        
+    
 expect(check
@@ -1329,32 +1329,176 @@
 .toBeVisible();%0A
+        %7D);%0A%0A        it('shows the 2nd password field and focuses it', function() %7B%0A            displayValidateMasterPassword(clickEvent);%0A%0A    
         expect(p
@@ -1526,32 +1526,36 @@
 ible();%0A        
+    
 expect(passwordF
@@ -1571,24 +1571,36 @@
 eFocused();%0A
+        %7D);%0A
     %7D);%0A%0A   

Refactor "New Nickname" tests to read better