function testNavOnSrcAttributeChange() {
  var testPage1 = 'data:text/html,test page 1';
  var testPage2 = 'data:text/html,test page 2';
  var testPage3 = 'data:text/html,test page 3';
  var tests = [testPage1, testPage2, testPage3];
  var webview = new WebView();
  webview.partition = arguments.callee.name;
  var loadCommitCount = 0;
  webview.addEventListener('loadcommit', function(evt) {
    var success = tests.indexOf(evt.url) > -1;
    embedder.test.assertTrue(success);
    ++loadCommitCount;
    if (loadCommitCount == tests.length) {
      embedder.test.succeed();
    } else if (loadCommitCount > tests.length) {
      embedder.test.fail();
    } else {
      webview.src = tests[loadCommitCount];
    }
  });
  webview.src = tests[0];
  document.body.appendChild(webview);
}
// changes will cause a navigation.
changes will cause a navigation.
changes will cause a navigation .
function testNavOnSrcAttributeChange() {
  var testPage1 = 'data:text/html,test page 1';
  var testPage2 = 'data:text/html,test page 2';
  var testPage3 = 'data:text/html,test page 3';
  var tests = [testPage1, testPage2, testPage3];
  var webview = new WebView();
  webview.partition = arguments.callee.name;
  var loadCommitCount = 0;
  webview.addEventListener('loadcommit', function(evt) {
    var success = tests.indexOf(evt.url) > -1;
    embedder.test.assertTrue(success);
    ++loadCommitCount;
    if (loadCommitCount == tests.length) {
      embedder.test.succeed();
    } else if (loadCommitCount > tests.length) {
      embedder.test.fail();
    } else {
      webview.src = tests[loadCommitCount];
    }
  });
  webview.src = tests[0];
  document.body.appendChild(webview);
}
function testNavOnSrcAttributeChange ( ) { var testPage1 = 'data:text/html,test page 1' ; var testPage2 = 'data:text/html,test page 2' ; var testPage3 = 'data:text/html,test page 3' ; var tests = [ testPage1 , testPage2 , testPage3 ] ; var webview = new WebView ( ) ; webview . partition = arguments . callee . name ; var loadCommitCount = 0 ; webview . addEventListener ( 'loadcommit' , function ( evt ) { var success = tests . indexOf ( evt . url ) > - 1 ; embedder . test . assertTrue ( success ) ; ++ loadCommitCount ; if ( loadCommitCount == tests . length ) { embedder . test . succeed ( ) ; } else if ( loadCommitCount > tests . length ) { embedder . test . fail ( ) ; } else { webview . src = tests [ loadCommitCount ] ; } } ) ; webview . src = tests [ 0 ] ; document . body . appendChild ( webview ) ; }
changes will cause a navigation.
changes will cause a navigation .