E / Console da Web (8272): UnEught ReferenceError: functionName não está definido: 1 durante o carregamento de webviews em um View Pager

Eu estou tentando carregar webviews em um pager de exibição.

public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    View v = null;      
    v = inflater.inflate(R.layout.webview_layout, container, false);
    myWebView = (WebView)v.findViewById(R.id.webview1);
    WebSettings webSettings = myWebView.getSettings();      
    webSettings.setJavaScriptEnabled(true);
    webSettings.setAppCacheEnabled(true);
    webSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
    myWebView.loadUrl("file:///android_asset/web/index.html");
    myWebView.setWebViewClient(new WebViewClient() {
        @Override
        public void onPageFinished(WebView view, String url) {
            myWebView.loadUrl("javascript:testFunction()");
        }
    }
}

Depois de carregar a página, uma função javascript é chamadaonPageFinished() Durante a rolagem na velocidade normal, as páginas da web estão sendo carregadas e o javascript é executado.

Mas durante a rolagem em alta velocidade, ocorre a seguinte exceção.

> 09-06 14:29:06.750: E/Web Console(8272): Uncaught ReferenceError:
> testFunction is not defined:1

testFunction () é

function testFunction(){
    console.log("TestFuntion");     
}

Por favor ajude...

questionAnswers(3)

yourAnswerToTheQuestion