/external/webkit/Tools/TestWebKitAPI/Tests/WTF/ |
VectorBasic.cpp | 35 TEST_ASSERT(intVector.isEmpty()); 36 TEST_ASSERT(intVector.size() == 0); 37 TEST_ASSERT(intVector.capacity() == 0);
|
/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/ |
WKString.cpp | 35 TEST_ASSERT(!WKStringIsEmpty(string)); 36 TEST_ASSERT(WKStringIsEqual(string, string)); 37 TEST_ASSERT(WKStringIsEqualToUTF8CString(string, "hello")); 38 TEST_ASSERT(WKStringGetMaximumUTF8CStringSize(string) == 16); 44 TEST_ASSERT(actualSize == 6); 45 TEST_ASSERT(strcmp(buffer, "hello") == 0); 50 TEST_ASSERT(maxSize == 5); 55 TEST_ASSERT(actualSize == 5); 58 TEST_ASSERT(!memcmp(uniBuffer, helloBuffer, 10)); 62 TEST_ASSERT(actualSize == 4) [all...] |
WKPreferences.cpp | 40 TEST_ASSERT(WKGetTypeID(preference) == WKPreferencesGetTypeID()); 65 TEST_ASSERT(WKPreferencesGetJavaScriptEnabled(preference) == true); 66 TEST_ASSERT(WKPreferencesGetLoadsImagesAutomatically(preference) == true); 67 TEST_ASSERT(WKPreferencesGetOfflineWebApplicationCacheEnabled(preference) == false); 68 TEST_ASSERT(WKPreferencesGetLocalStorageEnabled(preference) == true); 69 TEST_ASSERT(WKPreferencesGetXSSAuditorEnabled(preference) == true); 70 TEST_ASSERT(WKPreferencesGetFrameFlatteningEnabled(preference) == false); 71 TEST_ASSERT(WKPreferencesGetPluginsEnabled(preference) == true); 72 TEST_ASSERT(WKPreferencesGetJavaEnabled(preference) == true); 73 TEST_ASSERT(WKPreferencesGetJavaScriptCanOpenWindowsAutomatically(preference) == true) [all...] |
SpacebarScrolling.cpp | 71 TEST_ASSERT(runJSTest(webView.page(), "isDocumentScrolled()", "false")); 72 TEST_ASSERT(runJSTest(webView.page(), "textFieldContainsSpace()", "false")); 76 TEST_ASSERT(runJSTest(webView.page(), "isDocumentScrolled()", "false")); 77 TEST_ASSERT(runJSTest(webView.page(), "textFieldContainsSpace()", "true")); 83 TEST_ASSERT(!didNotHandleKeyDownEvent); 85 TEST_ASSERT(didNotHandleKeyDownEvent); 88 TEST_ASSERT(runJSTest(webView.page(), "blurTextField()", "undefined")); 93 TEST_ASSERT(runJSTest(webView.page(), "isDocumentScrolled()", "true")); 94 TEST_ASSERT(runJSTest(webView.page(), "textFieldContainsSpace()", "true")); 96 TEST_ASSERT(!didNotHandleKeyDownEvent) [all...] |
PageLoadBasic.cpp | 53 TEST_ASSERT(state->didDecidePolicyForNavigationAction); 54 TEST_ASSERT(!state->didCommitLoadForFrame); 57 TEST_ASSERT(!WKFrameCopyURL(frame)); 59 TEST_ASSERT(!state->didStartProvisionalLoadForFrame); 68 TEST_ASSERT(state->didDecidePolicyForNavigationAction); 69 TEST_ASSERT(state->didStartProvisionalLoadForFrame); 72 TEST_ASSERT(!WKFrameCopyProvisionalURL(frame)); 80 TEST_ASSERT(state->didDecidePolicyForNavigationAction); 81 TEST_ASSERT(state->didStartProvisionalLoadForFrame); 82 TEST_ASSERT(state->didCommitLoadForFrame) [all...] |
DocumentStartUserScriptAlertCrash.cpp | 39 TEST_ASSERT(frame); 40 TEST_ASSERT(WKFrameGetPage(frame) == page); 41 TEST_ASSERT(WKStringIsEqualToUTF8CString(alertText, "an alert"));
|
EvaluateJavaScript.cpp | 41 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578)); 42 TEST_ASSERT(!resultSerializedScriptValue); 46 TEST_ASSERT(!error);
|
WKStringJSString.cpp | 40 TEST_ASSERT(WKStringIsEqual(wkString, convertedJSString)); 43 TEST_ASSERT(JSStringIsEqual(jsString, convertedWKString));
|
PageLoadDidChangeLocationWithinPageForFrame.cpp | 50 TEST_ASSERT(type == kWKSameDocumentNavigationSessionStatePop); 51 TEST_ASSERT(!didChangeLocationWithinPage); 56 TEST_ASSERT(type == kWKSameDocumentNavigationAnchorNavigation); 82 TEST_ASSERT(!WKURLIsEqual(initialURL.get(), urlAfterAnchorClick.get()));
|
PreventEmptyUserAgent.cpp | 41 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578)); 42 TEST_ASSERT(resultSerializedScriptValue); 46 TEST_ASSERT(JSValueIsString(scriptContext, scriptValue)); 51 TEST_ASSERT(JSStringGetLength(scriptString));
|
FailedLoad.cpp | 41 TEST_ASSERT(WKFrameGetFrameLoadState(frame) == kWKFrameLoadStateFinished); 44 TEST_ASSERT(!url);
|
CanHandleRequest.cpp | 42 TEST_ASSERT(WKStringIsEqualToUTF8CString(messageName, "DidCheckCanHandleRequest")); 43 TEST_ASSERT(WKGetTypeID(body) == WKBooleanGetTypeID()); 69 TEST_ASSERT(canHandleRequest);
|
CookieManager.cpp | 44 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578)); 45 TEST_ASSERT(policy == testPolicy); 54 TEST_ASSERT(context == reinterpret_cast<void*>(0x1234578));
|
FrameMIMETypeHTML.cpp | 40 TEST_ASSERT(WKStringIsEmpty(wkMIME.get())); 46 TEST_ASSERT(WKStringIsEqualToUTF8CString(wkMIME.get(), "text/html")); 52 TEST_ASSERT(WKStringIsEqualToUTF8CString(wkMIME.get(), "text/html"));
|
/external/icu4c/test/intltest/ |
v32test.cpp | 64 #define TEST_ASSERT(expr) \ 99 TEST_ASSERT(b->size() == 3); 100 TEST_ASSERT(b->elementAti(1) == 20); 114 TEST_ASSERT(*b != *a); 115 TEST_ASSERT(!(*b == *a)); 116 TEST_ASSERT(!b->equals(*a)); 118 TEST_ASSERT(*b == *a); 119 TEST_ASSERT(!(*b != *a)); 120 TEST_ASSERT(b->equals(*a)); 122 TEST_ASSERT(*b != *a) [all...] |
uvectest.cpp | 64 #define TEST_ASSERT(expr) \ 113 TEST_ASSERT(a->elementAti(0) == 10); 114 TEST_ASSERT(a->elementAti(1) == 15); 115 TEST_ASSERT(a->elementAti(2) == 20); 116 TEST_ASSERT(a->elementAti(3) == 30); 117 TEST_ASSERT(a->indexOf((int32_t)3) == -1); 118 TEST_ASSERT(a->indexOf((int32_t)15) == 1); 119 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); 120 TEST_ASSERT(a->contains((int32_t)15)); 121 TEST_ASSERT(!a->contains((int32_t)5)) [all...] |
alphaindextst.cpp | 52 #define TEST_ASSERT(expr) {if ((expr)==FALSE) {errln("%s:%d: Test failure \n", __FILE__, __LINE__);};} 70 TEST_ASSERT(28 == lc); // 26 letters plus two under/overflow labels. 86 TEST_ASSERT(30 == lc); // 26 Latin letters plus 87 // TEST_ASSERT(31 == lc); // 26 Latin letters plus 101 TEST_ASSERT(&aip == index); 105 TEST_ASSERT(35 < lc); // Japanese should add a bunch. Don't rely on the exact value. 116 TEST_ASSERT(*germanCol == indexCol); 121 TEST_ASSERT(ELLIPSIS == s); 123 TEST_ASSERT(ELLIPSIS == s); 125 TEST_ASSERT(ELLIPSIS == s) [all...] |
rbbiapts.cpp | 35 #define TEST_ASSERT(expr) {if ((expr) == FALSE) { \ 266 TEST_ASSERT(tstr == str1); 278 TEST_ASSERT(wordIter1->getText() != charIter1->getText()); 281 TEST_ASSERT(tstr == str2); 284 TEST_ASSERT(tstr == str1); 299 TEST_ASSERT(rb->preceding(2) == 0); 300 TEST_ASSERT(rb->following(11) == BreakIterator::DONE); 323 TEST_ASSERT(pos==0); 325 TEST_ASSERT(pos==5); 327 TEST_ASSERT(pos==6) [all...] |
utxttest.cpp | 27 #define TEST_ASSERT(x) \ 298 TEST_ASSERT(utext_isWritable(ut) == TRUE); 436 TEST_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); 453 TEST_ASSERT(uti == usi); 454 TEST_ASSERT(utc == usc); 466 TEST_ASSERT(uti == expectedNativeLength); 512 TEST_ASSERT(actualDelta == expectedDelta); 530 TEST_ASSERT(uti == usi); 531 TEST_ASSERT(utc == usc); 540 TEST_ASSERT(uti == expectedNativeLength) [all...] |
/external/icu4c/test/cintltst/ |
utexttst.c | 35 #define TEST_ASSERT(x) \ 74 TEST_ASSERT(c == 0x41); 76 TEST_ASSERT(utb == NULL); 80 TEST_ASSERT(uta == &utLoc); 83 TEST_ASSERT(uta == &utLoc); 98 TEST_ASSERT(utb != NULL); 99 TEST_ASSERT(utb != uta); 101 TEST_ASSERT(len == u_strlen(uString)); 117 TEST_ASSERT(uta!=NULL); 120 TEST_ASSERT(b==TRUE) [all...] |
reapits.c | 35 #define TEST_ASSERT(expr) {if ((expr)==FALSE) { \ 189 TEST_ASSERT(status == U_REGEX_INVALID_FLAG); 195 TEST_ASSERT(status == U_REGEX_UNIMPLEMENTED); 202 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR && re == NULL); 208 TEST_ASSERT(status == U_USELESS_COLLATOR_ERROR && re == NULL); 223 TEST_ASSERT(u_strcmp(pat, p) == 0); 224 TEST_ASSERT(len==(int32_t)strlen("abc*")); 249 TEST_ASSERT(clone1 != NULL); 254 TEST_ASSERT(clone2 != NULL); 260 TEST_ASSERT(clone3 != NULL) [all...] |
tracetst.c | 50 #define TEST_ASSERT(expr) \ 226 TEST_ASSERT(originalTEntryFunc != testTraceEntry); 227 TEST_ASSERT(originalTExitFunc != testTraceExit); 228 TEST_ASSERT(originalTDataFunc != testTraceData); 232 TEST_ASSERT(e == testTraceEntry); 233 TEST_ASSERT(x == testTraceExit); 234 TEST_ASSERT(d == testTraceData); 235 TEST_ASSERT(context == newContext); 247 TEST_ASSERT(level==UTRACE_OFF); 250 TEST_ASSERT(level==UTRACE_VERBOSE) [all...] |
hpmufn.c | 54 #define TEST_ASSERT(expr) \ 239 TEST_ASSERT(This->fLockCount == 0); 240 TEST_ASSERT(This->fMagic == 123456); 249 TEST_ASSERT(This->fMagic == 123456); 257 TEST_ASSERT(This->fMagic == 123456); 259 TEST_ASSERT(This->fLockCount >= 0); 331 TEST_ASSERT(gTotalMutexesInitialized > 0); 332 TEST_ASSERT(gTotalMutexesActive > 0); 339 TEST_ASSERT(gTotalMutexesInitialized > 0); 340 TEST_ASSERT(gTotalMutexesActive == 0) [all...] |
/external/webkit/Tools/TestWebKitAPI/ |
JavaScriptTest.cpp | 46 TEST_ASSERT(resultSerializedScriptValue); 51 TEST_ASSERT(scriptContext); 54 TEST_ASSERT(scriptValue); 57 TEST_ASSERT(scriptString); 65 TEST_ASSERT(!error);
|
/external/webkit/Tools/WebKitAPITest/tests/ |
WebViewDestruction.cpp | 56 TEST_ASSERT(SUCCEEDED(WebKitCreateInstance(__uuidof(WebView), &webView))); 58 TEST_ASSERT(window.initialize()); 59 TEST_ASSERT(SUCCEEDED(webView->setHostWindow(reinterpret_cast<OLE_HANDLE>(window.window())))); 60 TEST_ASSERT(SUCCEEDED(webView->initWithFrame(window.clientRect(), 0, 0))); 63 TEST_ASSERT(viewPrivate); 64 TEST_ASSERT(SUCCEEDED(viewPrivate->viewWindow(reinterpret_cast<OLE_HANDLE*>(&viewWindow)))); 65 TEST_ASSERT(IsWindow(viewWindow)); 90 TEST_ASSERT(currentWebViewCount > 0); 94 TEST_ASSERT(webViewCount() == currentWebViewCount - 1); 95 TEST_ASSERT(!IsWindow(viewWindow)) [all...] |