anchor.diff:      };
     }
   
  -  void setUpTestSuite() {
  -    // TODO(jmesserly): should be adding the full stylesheet here
  -    Dom.addStyle('''
  -        .story-content {
  -          -webkit-column-width: 300px;
  -          -webkit-column-gap: 26px; /* 2em */
  -        }''');
  -    addTest(testBackButton);
  -    addTest(testStoryView);
  -    addTest(testSliderMenu);
  -  }
  -
  -  /** Triggers the click event, like [http://api.jquery.com/click/] */
  -  _click(Element element) {
  -    // TODO(rnystrom): This should be on the DOM API somewhere.
  -    MouseEvent event = document.createEvent('MouseEvents');
  -    event.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0,
  -        false, false, false, false, 0, null);
  -    element.on.click.dispatch(event);
  -  }
  -
  -  void testBackButton() {
  +  test('BackButton', () {
       Expect.equals(null, swarm.frontView.storyView); // verify initial state
   
       // Make sure we've transitioned to the section
  
positive.code: 
      Expect.equals(item, state.currentArticle.value);
  
      Expect.isFalse(storyNode.classes.contains(CSS.HIDDEN_STORY));
  
      state.loadFromHistory({});
  
      Expect.equals(null, state.currentArticle.value);
      Expect.isTrue(storyNode.classes.contains(CSS.HIDDEN_STORY));
    }
  
    void testStoryView() {
      state.clearHistory();
  
      Expect.isTrue(storyNode.classes.contains(CSS.HIDDEN_STORY));
  
      final dataSourceView =
          swarm.frontView.currentSection.dataSourceView.getSubview(0);
  
negative.code:     // running without the correct CSS to size the window so that some items
      // are visible.
      if (itemView != null) {
        click(itemView.node);
        state.expectHistory([getHistory(itemView.item)]);
      }
    });
  
    test('SliderMenu', () {
      Expect.equals(getView(swarm.sections[0]), swarm.frontView.currentSection);
  
      // Find the first slider menu item, and click on the one next after it.
      click(document.queryAll('.${CSS.SM_ITEM}')[1]);
  
      Expect.equals(getView(swarm.sections[1]), swarm.frontView.currentSection);
  
      // Find the first menu item again and click on it.
      click(document.query('.${CSS.SM_ITEM}'));
  
      Expect.equals(getView(swarm.sections[0]), swarm.frontView.currentSection);
    });
  }
  
  /** Triggers the click event, like [http://api.jquery.com/click/] */
  click(Element element) {
    // TODO(rnystrom): This should be on the DOM API somewhere.
    MouseEvent event = document.createEvent('MouseEvents');
    event.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0,
        false, false, false, false, 0, null);
    element.on.click.dispatch(event);
  }
  
  
  /** A proxy so we can intercept history calls */
  class UIStateProxy extends SwarmState {
  