Lines Matching refs:shared
393 if (!InjectedBundle::shared().isTestRunning())
396 if (InjectedBundle::shared().topLoadingFrame())
398 InjectedBundle::shared().setTopLoadingFrame(frame);
407 if (!InjectedBundle::shared().isTestRunning())
410 if (frame != InjectedBundle::shared().topLoadingFrame())
412 InjectedBundle::shared().setTopLoadingFrame(0);
414 shared().layoutTestController()->waitToDump())
417 InjectedBundle::shared().done();
433 InjectedBundle::shared().os() << "frame '" << name << "' ";
435 InjectedBundle::shared().os() << "scrolled to " << x << "," << y << "\n";
490 InjectedBundle::shared().os() << text << "\n";
500 InjectedBundle::shared().os() << "\n--------\nFrame: '" << subframeName << "'\n--------\n";
515 ASSERT(InjectedBundle::shared().isTestRunning());
517 InjectedBundle::shared().layoutTestController()->invalidateWaitToDumpWatchdogTimer();
526 InjectedBundle::shared().layoutTestController()->dumpAsText();
528 switch (InjectedBundle::shared().layoutTestController()->whatToDump()) {
531 InjectedBundle::shared().os() << text;
542 if (InjectedBundle::shared().layoutTestController()->shouldDumpAllFrameScrollPositions())
544 else if (InjectedBundle::shared().layoutTestController()->shouldDumpMainFrameScrollPosition())
547 if (InjectedBundle::shared().layoutTestController()->shouldDumpBackForwardListsForAllWindows())
548 InjectedBundle::shared().dumpBackForwardListsForAllPages();
550 if (InjectedBundle::shared().shouldDumpPixels() && InjectedBundle::shared().layoutTestController()->shouldDumpPixels())
551 InjectedBundle::shared().setPixelResult(adoptWK(WKBundlePageCreateSnapshotInViewCoordinates(m_page, WKBundleFrameGetVisibleContentBounds(WKBundlePageGetMainFrame(m_page)), kWKImageOptionsShareable)).get());
553 InjectedBundle::shared().done();
558 if (!InjectedBundle::shared().isTestRunning())
561 if (frame != InjectedBundle::shared().topLoadingFrame())
563 InjectedBundle::shared().setTopLoadingFrame(0);
565 if (InjectedBundle::shared().layoutTestController()->waitToDump())
568 InjectedBundle::shared().page()->dump();
573 if (!InjectedBundle::shared().isTestRunning())
576 if (frame != InjectedBundle::shared().topLoadingFrame())
578 InjectedBundle::shared().setTopLoadingFrame(0);
580 if (InjectedBundle::shared().layoutTestController()->waitToDump())
583 InjectedBundle::shared().done();
588 if (!InjectedBundle::shared().isTestRunning())
591 if (!InjectedBundle::shared().layoutTestController()->shouldDumpTitleChanges())
594 InjectedBundle::shared().os() << "TITLE CHANGED: " << title << "\n";
599 if (!InjectedBundle::shared().isTestRunning())
611 InjectedBundle::shared().layoutTestController()->makeWindowObject(context, window, &exception);
612 InjectedBundle::shared().gcController()->makeWindowObject(context, window, &exception);
613 InjectedBundle::shared().eventSendingController()->makeWindowObject(context, window, &exception);
630 if (!InjectedBundle::shared().isTestRunning())
635 InjectedBundle::shared().os() << frame << " - has " << pendingFrameUnloadEvents << " onunload handler(s)\n";
658 if (InjectedBundle::shared().isTestRunning() && InjectedBundle::shared().layoutTestController()->willSendRequestReturnsNull())
669 InjectedBundle::shared().os() << "Blocked access to external URL " << url << "\n";
784 if (!InjectedBundle::shared().isTestRunning())
793 InjectedBundle::shared().os() << "CONSOLE MESSAGE: line " << lineNumber << ": " << messageString << "\n";
798 if (!InjectedBundle::shared().isTestRunning())
801 if (!InjectedBundle::shared().layoutTestController()->shouldDumpStatusCallbacks())
804 InjectedBundle::shared().os() << "UI DELEGATE STATUS CALLBACK: setStatusText:" << statusbarText << "\n";
809 if (!InjectedBundle::shared().isTestRunning())
812 InjectedBundle::shared().os() << "ALERT: " << message << "\n";
817 if (!InjectedBundle::shared().isTestRunning())
820 InjectedBundle::shared().os() << "CONFIRM: " << message << "\n";
825 InjectedBundle::shared
887 if (!InjectedBundle::shared().isTestRunning())
890 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
891 InjectedBundle::shared().os() << "EDITING DELEGATE: shouldBeginEditingInDOMRange:" << toStr(m_page, m_world.get(), range) << "\n";
892 return InjectedBundle::shared().layoutTestController()->shouldAllowEditing();
897 if (!InjectedBundle::shared().isTestRunning())
900 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
901 InjectedBundle::shared().os() << "EDITING DELEGATE: shouldEndEditingInDOMRange:" << toStr(m_page, m_world.get(), range) << "\n";
902 return InjectedBundle::shared().layoutTestController()->shouldAllowEditing();
907 if (!InjectedBundle::shared().isTestRunning())
916 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
917 InjectedBundle::shared().os() << "EDITING DELEGATE: shouldInsertNode:" << dumpPath(m_page, m_world.get(), node) << " replacingDOMRange:" << toStr(m_page, m_world.get(), rangeToReplace) << " givenAction:" << insertactionstring[action] << "\n";
918 return InjectedBundle::shared().layoutTestController()->shouldAllowEditing();
923 if (!InjectedBundle::shared().isTestRunning())
932 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
933 InjectedBundle::shared().os() << "EDITING DELEGATE: shouldInsertText:" << text << " replacingDOMRange:" << toStr(m_page, m_world.get(), rangeToReplace) << " givenAction:" << insertactionstring[action] << "\n";
934 return InjectedBundle::shared().layoutTestController()->shouldAllowEditing();
939 if (!InjectedBundle::shared().isTestRunning())
942 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
943 InjectedBundle::shared().os() << "EDITING DELEGATE: shouldDeleteDOMRange:" << toStr(m_page, m_world.get(), range) << "\n";
944 return InjectedBundle::shared().layoutTestController()->shouldAllowEditing();
949 if (!InjectedBundle::shared().isTestRunning())
961 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
962 InjectedBundle::shared().os() << "EDITING DELEGATE: shouldChangeSelectedDOMRange:" << toStr(m_page, m_world.get(), fromRange) << " toDOMRange:" << toStr(m_page, m_world.get(), toRange) << " affinity:" << affinitystring[affinity] << " stillSelecting:" << boolstring[stillSelecting] << "\n";
963 return InjectedBundle::shared().layoutTestController()->shouldAllowEditing();
968 if (!InjectedBundle::shared().isTestRunning())
971 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
972 InjectedBundle::shared().os() << "EDITING DELEGATE: shouldApplyStyle:" << style << " toElementsInDOMRange:" << toStr(m_page, m_world.get(), range) << "\n";
973 return InjectedBundle::shared().layoutTestController()->shouldAllowEditing();
978 if (!InjectedBundle::shared().isTestRunning())
981 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
982 InjectedBundle::shared().os() << "EDITING DELEGATE: webViewDidBeginEditing:" << notificationName << "\n";
987 if (!InjectedBundle::shared().isTestRunning())
990 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
991 InjectedBundle::shared().os() << "EDITING DELEGATE: webViewDidEndEditing:" << notificationName << "\n";
996 if (!InjectedBundle::shared().isTestRunning())
999 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
1000 InjectedBundle::shared().os() << "EDITING DELEGATE: webViewDidChange:" << notificationName << "\n";
1005 if (!InjectedBundle::shared().isTestRunning())
1008 if (InjectedBundle::shared().layoutTestController()->shouldDumpEditingCallbacks())
1009 InjectedBundle::shared().os() << "EDITING DELEGATE: webViewDidChangeSelection:" << notificationName << "\n";
1015 if (InjectedBundle::shared().layoutTestController()->shouldDumpFullScreenCallbacks())
1016 InjectedBundle::shared().os() << "supportsFullScreen() == true\n";
1022 if (InjectedBundle::shared().layoutTestController()->shouldDumpFullScreenCallbacks())
1023 InjectedBundle::shared().os() << "enterFullScreenForElement()\n";
1030 if (InjectedBundle::shared().layoutTestController()->shouldDumpFullScreenCallbacks())
1031 InjectedBundle::shared().os() << "exitFullScreenForElement()\n";
1046 InjectedBundle::shared().os() << "curr->";
1050 InjectedBundle::shared().os() << ' ';
1060 InjectedBundle::shared().os() << "(file test):" << url.substr(start);
1062 InjectedBundle::shared().os() << url;
1066 InjectedBundle::shared().os() << " (in frame \"" << target << "\")";
1070 InjectedBundle::shared().os() << " **nav target**";
1072 InjectedBundle::shared().os() << '\n';
1088 InjectedBundle::shared().os() << "\n============== Back Forward List ==============\n";
1119 InjectedBundle::shared().os() << "===============================================\n";