Real unit test (isolation, no children render)
Calls:
- constructor
- render
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<title>blah</title> | |
</head> | |
<body> | |
<p>I'm the content</p> | |
</body> | |
</html> |
file_frame = myGlobalFrame = new wp.media.view.MediaFrame.Select( | |
{ | |
title: '<?php _e( "Choose an image", "woocommerce" ); ?>', | |
button: { | |
text: '<?php _e( "Use image", "woocommerce" ); ?>' | |
}, | |
state : 'library', | |
states : [ | |
//library | |
new wp.media.controller.Library({ |