function testNavOnConsecutiveSrcAttributeChanges() {
  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 webview = new WebView();
  webview.partition = arguments.callee.name;
  var loadCommitCount = 0;
  webview.addEventListener('loadcommit', function(e) {
    if (e.url == testPage3) {
      embedder.test.succeed();
    }
    loadCommitCount++;
    if (loadCommitCount > 3) {
      embedder.test.fail();
    }
  });
  document.body.appendChild(webview);
  webview.src = testPage1;
  webview.src = testPage2;
  webview.src = testPage3;
}
// attribute will cause a navigation.
attribute will cause a navigation.
attribute will cause a navigation .
function testNavOnConsecutiveSrcAttributeChanges() {
  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 webview = new WebView();
  webview.partition = arguments.callee.name;
  var loadCommitCount = 0;
  webview.addEventListener('loadcommit', function(e) {
    if (e.url == testPage3) {
      embedder.test.succeed();
    }
    loadCommitCount++;
    if (loadCommitCount > 3) {
      embedder.test.fail();
    }
  });
  document.body.appendChild(webview);
  webview.src = testPage1;
  webview.src = testPage2;
  webview.src = testPage3;
}
function testNavOnConsecutiveSrcAttributeChanges ( ) { 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 webview = new WebView ( ) ; webview . partition = arguments . callee . name ; var loadCommitCount = 0 ; webview . addEventListener ( 'loadcommit' , function ( e ) { if ( e . url == testPage3 ) { embedder . test . succeed ( ) ; } loadCommitCount ++ ; if ( loadCommitCount > 3 ) { embedder . test . fail ( ) ; } } ) ; document . body . appendChild ( webview ) ; webview . src = testPage1 ; webview . src = testPage2 ; webview . src = testPage3 ; }
attribute will cause a navigation.
attribute will cause a navigation .