refactor(core): remove animation utilities from DomAdapters (#32278)
PR Close #32278
This commit is contained in:
@ -6,13 +6,13 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {supportsWebAnimation} from '@angular/platform-browser/testing/src/browser_util';
|
||||
import {describe, expect, it} from '@angular/core/testing/src/testing_internal';
|
||||
import {RequestOptions} from '@angular/http/src/base_request_options';
|
||||
import {ContentType} from '@angular/http/src/enums';
|
||||
import {Headers} from '@angular/http/src/headers';
|
||||
import {stringToArrayBuffer, stringToArrayBuffer8} from '@angular/http/src/http_utils';
|
||||
import {ArrayBuffer, Request} from '@angular/http/src/static_request';
|
||||
import {ɵgetDOM as getDOM} from '@angular/platform-browser';
|
||||
|
||||
{
|
||||
describe('Request', () => {
|
||||
@ -121,7 +121,7 @@ import {ɵgetDOM as getDOM} from '@angular/platform-browser';
|
||||
expect(req.url).toBe('http://test.com?a=1&b=2');
|
||||
});
|
||||
|
||||
if (getDOM().supportsWebAnimation()) {
|
||||
if (supportsWebAnimation()) {
|
||||
it('should serialize an ArrayBuffer to string via legacy encoding', () => {
|
||||
const str = '\u89d2\u5ea6';
|
||||
expect(new Request({body: stringToArrayBuffer(str), url: '/'}).text()).toEqual(str);
|
||||
|
Reference in New Issue
Block a user