annotate iframe-resizer/test/resources/testLib.js @ 1:d582e2cd3e13 draft

Uploaded
author saskia-hiltemann
date Wed, 15 Jul 2015 08:52:21 -0400
parents 3c160414da2e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3c160414da2e initial upload
shiltemann
parents:
diff changeset
1 function sendMessage(msg){
3c160414da2e initial upload
shiltemann
parents:
diff changeset
2 'use strict';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
3 var msgId = '[iFrameSizerTest]:';
3c160414da2e initial upload
shiltemann
parents:
diff changeset
4
3c160414da2e initial upload
shiltemann
parents:
diff changeset
5 document.getElementsByTagName('iframe')[0].contentWindow.postMessage( msgId + msg, '*' );
3c160414da2e initial upload
shiltemann
parents:
diff changeset
6 }